diff options
Diffstat (limited to 'libavfilter/avfilter.c')
-rw-r--r-- | libavfilter/avfilter.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index e31aeac3d8..d6fc895646 100644 --- a/libavfilter/avfilter.c +++ b/libavfilter/avfilter.c @@ -211,6 +211,9 @@ AVFilterBufferRef *avfilter_get_video_buffer(AVFilterLink *link, int perms, int if(!ret) ret = avfilter_default_get_video_buffer(link, perms, w, h); + if (ret) + ret->type = AVMEDIA_TYPE_VIDEO; + FF_DPRINTF_START(NULL, get_video_buffer); ff_dprintf_link(NULL, link, 0); dprintf(NULL, " returning "); ff_dprintf_picref(NULL, ret, 1); return ret; |