[FFmpeg-devel] [PATCH] Codec lookup: do not use codec_id
Måns Rullgård
mans
Wed Aug 8 15:40:29 CEST 2007
Nicolas George wrote:
> Le nonidi 19 thermidor, an CCXV, Michael Niedermayer a ?crit :
>> instead of
>> av_free(x)
>> x=NULL
>>
>> av_freep(&x)
>> could be used
>
> I had seen av_freep, but I find the first form easier to read.
Like it or not, that's how things are done in ffmpeg. Most of us
find av_freep() at least as easy to read, and it avoids the risk
of forgetting to set the pointer to NULL manually.
--
M?ns Rullg?rd
mans at mansr.com
More information about the ffmpeg-devel
mailing list