Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2013-09-04 00:12:54 +0400
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2013-11-28 04:08:46 +0400
commit62baf22ec085a52a4ccb09cbd20a8d15c8496bdd (patch)
tree38c7525d0886c8132ceefbc017a62df7087642b2
parent8f7d839e15c98ada33b60d4e51ffa200473e7905 (diff)
lavfi/avfiltergraph: suggest a solution when format selection fails.
Format selection can fail if unknown channel layouts are used with filters that do not support it. (cherry picked from commit f775eb3fb4c7b716107355e428e40cb63f71ee7a)
-rw-r--r--libavfilter/avfiltergraph.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c
index 8c400028d8..444a1a130a 100644
--- a/libavfilter/avfiltergraph.c
+++ b/libavfilter/avfiltergraph.c
@@ -575,6 +575,10 @@ static int pick_format(AVFilterLink *link, AVFilterLink *ref)
av_log(link->src, AV_LOG_ERROR, "Cannot select channel layout for"
" the link between filters %s and %s.\n", link->src->name,
link->dst->name);
+ if (!link->in_channel_layouts->all_counts)
+ av_log(link->src, AV_LOG_ERROR, "Unknown channel layouts not "
+ "supported, try specifying a channel layout using "
+ "'aformat=channel_layouts=something'.\n");
return AVERROR(EINVAL);
}
link->in_channel_layouts->nb_channel_layouts = 1;