Commit 2ead3d0bdd for ffmpeg
commit 2ead3d0bdd1717282d1de21077bfd19162242179
Author: Michael Niedermayer <michael@niedermayer.cc>
Date: Thu Oct 15 03:54:38 2026 +0200
cosmetics: ffplay: drop the scope of the audio filter setup
Assisted-by: Claude
diff --git a/fftools/ffplay.c b/fftools/ffplay.c
index 1a7acb8897..ecb2151509 100644
--- a/fftools/ffplay.c
+++ b/fftools/ffplay.c
@@ -2995,15 +2995,13 @@ static int stream_component_open(VideoState *is, int stream_index)
ic->streams[stream_index]->discard = AVDISCARD_DEFAULT;
switch (avctx->codec_type) {
case AVMEDIA_TYPE_AUDIO:
- {
- is->audio_filter_src.freq = avctx->sample_rate;
- ret = av_channel_layout_copy(&is->audio_filter_src.ch_layout, &avctx->ch_layout);
- if (ret < 0)
- goto fail;
- is->audio_filter_src.fmt = avctx->sample_fmt;
- if ((ret = configure_audio_filters(is, afilters, 0)) < 0)
- goto fail;
- }
+ is->audio_filter_src.freq = avctx->sample_rate;
+ ret = av_channel_layout_copy(&is->audio_filter_src.ch_layout, &avctx->ch_layout);
+ if (ret < 0)
+ goto fail;
+ is->audio_filter_src.fmt = avctx->sample_fmt;
+ if ((ret = configure_audio_filters(is, afilters, 0)) < 0)
+ goto fail;
is->audio_stream = stream_index;
is->audio_st = ic->streams[stream_index];