]> git.sesse.net Git - ffmpeg/commitdiff
ffplay: do not set redundant channel count on abuffersink.
authorNicolas George <george@nsup.org>
Fri, 14 Aug 2020 09:25:09 +0000 (11:25 +0200)
committerNicolas George <george@nsup.org>
Thu, 20 Aug 2020 10:49:08 +0000 (12:49 +0200)
fftools/ffplay.c

index d673b8049a681854464b826d70bdf05afe22c584..6c9c041e9a561a1aa4cc94f1db4b71df70fb89df 100644 (file)
@@ -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;