[FFmpeg-cvslog] [ffmpeg-radio] 07/13: avradio/avformat/sdrdemux: Avoid uninitialized memory on mono -> stereo switch
Michael Niedermayer
ffmpeg-git at ffmpeg.org
Sat Sep 16 21:38:23 EEST 2023
This is an automated email from the git hooks/post-receive script.
Git pushed a commit to branch master
in repository libavradio.
commit f10f5c5ef92f91d96304c7f04e1415e274c8619d
Author: Michael Niedermayer <michael at niedermayer.cc>
AuthorDate: Sat Jul 29 16:11:32 2023 +0200
Commit: Michael Niedermayer <michael at niedermayer.cc>
CommitDate: Sun Jul 30 23:11:45 2023 +0200
avradio/avformat/sdrdemux: Avoid uninitialized memory on mono -> stereo switch
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
libavformat/sdrdemux.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavformat/sdrdemux.c b/libavformat/sdrdemux.c
index 69349add7b..8f0f4657f3 100644
--- a/libavformat/sdrdemux.c
+++ b/libavformat/sdrdemux.c
@@ -1150,6 +1150,8 @@ static int demodulate_fm(SDRContext *sdr, Station *station, AVStream *st, AVPack
sst->out_buf[2*i+0] = m + q;
sst->out_buf[2*i+1] = m - q;
} else {
+ newbuf[2*i+1] = 0;
+
sst->out_buf[2*i+0] =
sst->out_buf[2*i+1] = m;
}
More information about the ffmpeg-cvslog
mailing list