[FFmpeg-devel] [PATCH] Make avfilter_unref_buffer() accept a NULL parameter.

Michael Niedermayer michaelni
Sat Jan 15 14:40:14 CET 2011


On Sat, Jan 15, 2011 at 02:34:02PM +0100, Stefano Sabatini wrote:
> On date Saturday 2011-01-15 14:14:50 +0100, Michael Niedermayer encoded:
> > On Sat, Jan 15, 2011 at 12:53:20PM +0100, Stefano Sabatini wrote:
> > > On date Saturday 2011-01-15 12:48:33 +0100, Stefano Sabatini encoded:
> > [...]
> > > @@ -71,6 +71,8 @@ AVFilterBufferRef *avfilter_ref_buffer(AVFilterBufferRef *ref, int pmask)
> > >  
> > >  void avfilter_unref_buffer(AVFilterBufferRef *ref)
> > >  {
> > > +    if (!buf)
> > > +        return;
> > 
> > does that compile?
> 
> No of course, anyway is fine to apply (the correct version)?

of course ok

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

He who knows, does not speak. He who speaks, does not know. -- Lao Tsu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20110115/74ff6424/attachment.pgp>



More information about the ffmpeg-devel mailing list