[FFmpeg-soc] [soc]: r928 - libavfilter/defaults.c

koorogi subversion at mplayerhq.hu
Sat Aug 18 00:52:18 CEST 2007


Author: koorogi
Date: Sat Aug 18 00:52:18 2007
New Revision: 928

Log:
Ensure that buffers returned by the default allocator are readable, or else
they're useless for outputting.


Modified:
   libavfilter/defaults.c

Modified: libavfilter/defaults.c
==============================================================================
--- libavfilter/defaults.c	(original)
+++ libavfilter/defaults.c	Sat Aug 18 00:52:18 2007
@@ -39,7 +39,9 @@ AVFilterPicRef *avfilter_default_get_vid
     ref->pic   = pic;
     ref->w     = link->w;
     ref->h     = link->h;
-    ref->perms = perms;
+
+    /* make sure the buffer gets read permission or it's useless for output */
+    ref->perms = perms | AV_PERM_READ;
 
     pic->refcount = 1;
     pic->format   = link->format;



More information about the FFmpeg-soc mailing list