[SCM] libav/experimental: Ensure that buffers returned by the default allocator are readable, or else they're useless for outputting.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:14:48 UTC 2013


The following commit has been merged in the experimental branch:
commit 4f909565968158dd6cf5116838e8863f4aa51ecc
Author: Vitor Sessak <vitor1001 at gmail.com>
Date:   Fri Feb 15 21:59:57 2008 +0000

    Ensure that buffers returned by the default allocator are readable, or else
    they're useless for outputting.
    
    Commited in SoC by Bobby Bingham on 2007-08-17 22:52:18
    
    Originally committed as revision 12070 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavfilter/defaults.c b/libavfilter/defaults.c
index da739d9..8abdb7e 100644
--- a/libavfilter/defaults.c
+++ b/libavfilter/defaults.c
@@ -39,7 +39,9 @@ AVFilterPicRef *avfilter_default_get_video_buffer(AVFilterLink *link, int perms)
     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;

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list