[FFmpeg-cvslog] r12070 - trunk/libavfilter/defaults.c
vitor
subversion
Fri Feb 15 22:59:57 CET 2008
Author: vitor
Date: Fri Feb 15 22:59:57 2008
New Revision: 12070
Log:
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
Modified:
trunk/libavfilter/defaults.c
Modified: trunk/libavfilter/defaults.c
==============================================================================
--- trunk/libavfilter/defaults.c (original)
+++ trunk/libavfilter/defaults.c Fri Feb 15 22:59:57 2008
@@ -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-cvslog
mailing list