History

avfiltergraph.c: restore disabling of auto conversions

Restore a check added in 440af105f2306d3c7b3b3f4d7530bab910d49cb9 but lost sometime after. avfilter_graph_set_auto_convert() will have an effect once again.

Burt P committed 10 years ago

Commit 16ea0bc1 parent 80262d81 file · +8 −0Browse files

Unified · Split

libavfilter/avfiltergraph.c+8−0
@@ -507,6 +507,14 @@ static int query_formats(AVFilterGraph *graph, AVClass *log_ctx) · 506 unmodified lines
507507 char scale_args[256];
508508 char inst_name[30];
509509
510+ if (graph->disable_auto_convert) {
511+ av_log(log_ctx, AV_LOG_ERROR,
512+ "The filters '%s' and '%s' do not have a common format "
513+ "and automatic conversion is disabled.\n",
514+ link->src->name, link->dst->name);
515+ return AVERROR(EINVAL);
516+ }
517+
510518 /* couldn't merge format lists. auto-insert conversion filter */
511519 switch (link->type) {
512520 case AVMEDIA_TYPE_VIDEO:

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t