[FFmpeg-devel] [PATCH] add a close function to bitstream filter
Mon Sep 3 15:08:40 CEST 2007
Benoit Fouet wrote:
> Aurelien Jacobs wrote:
>> On Mon, 03 Sep 2007 14:16:06 +0200
>> Benoit Fouet <benoit.fouet at purplelabs.com> wrote:
>>> Index: libavcodec/remove_extradata_bsf.c
>>> --- libavcodec/remove_extradata_bsf.c (revision 10287)
>>> +++ libavcodec/remove_extradata_bsf.c (working copy)
>>> @@ -52,4 +52,5 @@
>>> + NULL,
>> All those NULLs added to the end of existing bsfs are useless.
> why ?
> is there any guarantee that the memory is set to zero for non static
> variable ?
Yes. All data with static storage duration, i.e. not allocated on the
stack, is implicitly initialised as if through an assignment with a
constant 0. This is not necessarily all bits zero, although in practise
it always is, and either way is what you want.
mans at mansr.com
More information about the ffmpeg-devel