Actually fail when colorspaces don't match

Commited in SoC by Bobby Bingham on 2007-07-08 17:58:45

Originally committed as revision 11984 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Vitor Sessak 17 years ago
parent 9586ba3a13
commit 998a7aa3dc
  1. 1
      libavfilter/avfilter.c

@ -142,6 +142,7 @@ int avfilter_link(AVFilterContext *src, unsigned srcpad,
link->cur_pic = NULL; link->cur_pic = NULL;
/* find a format both filters support - TODO: auto-insert conversion filter */ /* find a format both filters support - TODO: auto-insert conversion filter */
link->format = -1;
if(src->filter->outputs[srcpad].query_formats) if(src->filter->outputs[srcpad].query_formats)
fmts[0] = src->filter->outputs[srcpad].query_formats(link); fmts[0] = src->filter->outputs[srcpad].query_formats(link);
else else

Loading…
Cancel
Save