]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/avfiltergraph.c
avformat/segment: give a warning message for remove initial_offset option
[ffmpeg] / libavfilter / avfiltergraph.c
index 42751132af8145b8b1a3bb6f2e40de84642f28fc..3af698d4beff733d1eb6d6fc6147f92c7480dda4 100644 (file)
@@ -507,6 +507,14 @@ static int query_formats(AVFilterGraph *graph, AVClass *log_ctx)
                 char scale_args[256];
                 char inst_name[30];
 
+                if (graph->disable_auto_convert) {
+                    av_log(log_ctx, AV_LOG_ERROR,
+                           "The filters '%s' and '%s' do not have a common format "
+                           "and automatic conversion is disabled.\n",
+                           link->src->name, link->dst->name);
+                    return AVERROR(EINVAL);
+                }
+
                 /* couldn't merge format lists. auto-insert conversion filter */
                 switch (link->type) {
                 case AVMEDIA_TYPE_VIDEO: