[FFmpeg-devel] [PATCH] add a close function to bitstream filter
Michael Niedermayer
michaelni
Mon Sep 3 19:06:25 CEST 2007
Hi
On Mon, Sep 03, 2007 at 03:13:28PM +0200, Benoit Fouet wrote:
> M?ns Rullg?rd wrote:
> > 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 @@
> >>>> "remove_extra",
> >>>> 0,
> >>>> remove_extradata,
> >>>> + 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.
> >
>
> ok, thanks for the explanation...
> and thanks Aurel for the review
>
> updated patch attached
ok
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Dictatorship naturally arises out of democracy, and the most aggravated
form of tyranny and slavery out of the most extreme liberty. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070903/234e08ea/attachment.pgp>
More information about the ffmpeg-devel
mailing list