[FFmpeg-cvslog] ffplay: do not set redundant channel count on abuffersink.
Nicolas George
git at videolan.org
Thu Aug 20 13:59:21 EEST 2020
ffmpeg | branch: master | Nicolas George <george at nsup.org> | Fri Aug 14 11:25:09 2020 +0200| [973540118a82d1dbaa3d4ae08b7014eb434ef82b] | committer: Nicolas George
ffplay: do not set redundant channel count on abuffersink.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=973540118a82d1dbaa3d4ae08b7014eb434ef82b
---
fftools/ffplay.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
More information about the ffmpeg-cvslog
mailing list