Skip to content

Commit

Permalink
ffplay: do not set redundant channel count on abuffersink.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cigaes committed Aug 20, 2020
1 parent f103731 commit 9735401
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fftools/ffplay.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9735401

Please sign in to comment.