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

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


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?


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

Avoid a single point of failure, be that a person or equipment.
-------------- 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/d6faa2ac/attachment.pgp>



More information about the ffmpeg-devel mailing list