Set type on buffer in get_video_buffer().
authorS.N. Hemanth Meenakshisundaram <smeenaks@ucsd.edu>
Wed, 11 Aug 2010 15:38:50 +0000 (15:38 +0000)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Wed, 11 Aug 2010 15:38:50 +0000 (15:38 +0000)
Patch by S.N. Hemanth Meenakshisundaram reverse("skaneems") + "@ucsd.edu".

Originally committed as revision 24775 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavfilter/avfilter.c

index e31aeac..d6fc895 100644 (file)
@@ -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;