diff options
author | S.N. Hemanth Meenakshisundaram <smeenaks@ucsd.edu> | 2010-08-11 15:38:50 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-08-11 15:38:50 +0000 |
commit | 382ac60e444f0fa175c974048adf2c0994d1e380 (patch) | |
tree | 5b89a892abef4f2ed7e7c513e99d1f2d60c68118 | |
parent | 5bf840c41124a8b0dcfb492934fa9bd89a8e9c47 (diff) | |
download | ffmpeg-382ac60e444f0fa175c974048adf2c0994d1e380.tar.gz |
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
-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; |