1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-02-09 14:14:39 +02:00

fftools/ffplay: use correct buffersink channel layout parameters

Regression since 0995e1f1b31f6e937a1b527407ed3e850f138098.

Signed-off-by: Marton Balint <cus@passwd.hu>
(cherry picked from commit 7251f909721a570726775acf61b2b9c28a950c76)
This commit is contained in:
Marton Balint 2024-03-18 21:07:20 +01:00
parent 894bebeaf7
commit 888602001f

View File

@ -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;