mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
Make query_formats() print an error message if an auto-inserted scale
filter cannot convert between input and output formats. Originally committed as revision 21176 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
1460c79097
commit
f37c934d20
@ -147,15 +147,19 @@ static int query_formats(AVFilterGraph *graph, AVClass *log_ctx)
|
|||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
scale->filter->query_formats(scale);
|
scale->filter->query_formats(scale);
|
||||||
if(!avfilter_merge_formats(scale-> inputs[0]->in_formats,
|
if (((link = scale-> inputs[0]) &&
|
||||||
scale-> inputs[0]->out_formats)||
|
!avfilter_merge_formats(link->in_formats, link->out_formats)) ||
|
||||||
!avfilter_merge_formats(scale->outputs[0]->in_formats,
|
((link = scale->outputs[0]) &&
|
||||||
scale->outputs[0]->out_formats))
|
!avfilter_merge_formats(link->in_formats, link->out_formats))) {
|
||||||
|
av_log(log_ctx, AV_LOG_ERROR,
|
||||||
|
"Impossible to convert between the formats supported by the filter "
|
||||||
|
"'%s' and the filter '%s'\n", link->src->name, link->dst->name);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user