mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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
This commit is contained in:
parent
23274667c2
commit
4f90956596
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user