diff --git a/libavfilter/defaults.c b/libavfilter/defaults.c index da739d9d97..8abdb7e08f 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;