Commit bfce5ca571 for ffmpeg

commit bfce5ca571a79b413a9e10f901f0ba23f342c6c9
Author: Gyan Doshi <ffmpeg@gyani.pro>
Date:   Sun Nov 29 16:47:34 2026 +0530

    avcodec/s302m: silence uninitialized warning for channel property

    S302M specifies an even number of channels so it shouldn't be reached but
    the default fallthrough case set an uninitialized value. Set it to the value
    parsed from the frame header.

diff --git a/libavcodec/s302m.c b/libavcodec/s302m.c
index 80cc80f38e..420694a7c3 100644
--- a/libavcodec/s302m.c
+++ b/libavcodec/s302m.c
@@ -393,7 +393,7 @@ static int s302m_decode_frame(AVCodecContext *avctx, AVFrame *frame,
                 break;
             default:
                 avctx->ch_layout.order       = AV_CHANNEL_ORDER_UNSPEC;
-                avctx->ch_layout.nb_channels = channels;
+                avctx->ch_layout.nb_channels = s->channels;
                 break;
         }