summaryrefslogtreecommitdiff
path: root/libavfilter
diff options
context:
space:
mode:
authorS.N. Hemanth Meenakshisundaram <smeenaks@ucsd.edu>2010-08-11 15:38:50 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-08-11 15:38:50 +0000
commit382ac60e444f0fa175c974048adf2c0994d1e380 (patch)
tree5b89a892abef4f2ed7e7c513e99d1f2d60c68118 /libavfilter
parent5bf840c41124a8b0dcfb492934fa9bd89a8e9c47 (diff)
Set type on buffer in get_video_buffer().
Patch by S.N. Hemanth Meenakshisundaram reverse("skaneems") + "@ucsd.edu". Originally committed as revision 24775 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/avfilter.c3
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;