diff --git a/fftools/ffplay.c b/fftools/ffplay.c index d8c69e10bc..5bf2070a8d 100644 --- a/fftools/ffplay.c +++ b/fftools/ffplay.c @@ -1999,6 +1999,8 @@ static int configure_audio_filters(VideoState *is, const char *afilters, int for goto end; if (force_output_format) { + av_bprint_clear(&bp); + av_channel_layout_describe_bprint(&is->audio_tgt.ch_layout, &bp); 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;