aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas George <george@nsup.org>2020-08-14 11:25:09 +0200
committerNicolas George <george@nsup.org>2020-08-20 12:49:08 +0200
commit973540118a82d1dbaa3d4ae08b7014eb434ef82b (patch)
treee5809b8c51f76922cd66dea1fdad76c2cf6358a7
parentf103731e21e14efbc5efea32f1504eb99f45b10e (diff)
downloadffmpeg-973540118a82d1dbaa3d4ae08b7014eb434ef82b.tar.gz
ffplay: do not set redundant channel count on abuffersink.
-rw-r--r--fftools/ffplay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fftools/ffplay.c b/fftools/ffplay.c
index d673b8049a..6c9c041e9a 100644
--- a/fftools/ffplay.c
+++ b/fftools/ffplay.c
@@ -2008,7 +2008,7 @@ static int configure_audio_filters(VideoState *is, const char *afilters, int for
if (force_output_format) {
channel_layouts[0] = is->audio_tgt.channel_layout;
- channels [0] = is->audio_tgt.channels;
+ channels [0] = is->audio_tgt.channel_layout ? -1 : is->audio_tgt.channels;
sample_rates [0] = is->audio_tgt.freq;
if ((ret = av_opt_set_int(filt_asink, "all_channel_counts", 0, AV_OPT_SEARCH_CHILDREN)) < 0)
goto end;