Browse Source

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
tags/n0.8
S.N. Hemanth Meenakshisundaram Stefano Sabatini 15 years ago
parent
commit
382ac60e44
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavfilter/avfilter.c

+ 3
- 0
libavfilter/avfilter.c View 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;


Loading…
Cancel
Save