Commit 648c42b9 authored by vitor's avatar vitor

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


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12070 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 5bbe9112
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment