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;
_______________________________________________
FFmpeg-soc mailing list
[email protected]
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc

Reply via email to