This is an automated email from the git hooks/post-receive script.
Git pushed a commit to branch master
in repository ffmpeg.
The following commit(s) were added to refs/heads/master by this push:
new bfce5ca571 avcodec/s302m: silence uninitialized warning for channel
property
bfce5ca571 is described below
commit bfce5ca571a79b413a9e10f901f0ba23f342c6c9
Author: Gyan Doshi <[email protected]>
AuthorDate: Sun Nov 29 16:47:34 2026 +0530
Commit: Gyan Doshi <[email protected]>
CommitDate: Sun Nov 29 16:50:19 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.
---
libavcodec/s302m.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
}
--
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]