This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch release/9.1 in repository ffmpeg.
commit 70ba01e83569c609bd31acc31399cbca28712af1 Author: Michael Niedermayer <[email protected]> AuthorDate: Thu Nov 5 03:41:23 2026 +0100 Commit: Michael Niedermayer <[email protected]> CommitDate: Sun Nov 15 02:46:36 2026 +0100 avcodec/adpcmenc: encode all samples of a mono ADPCM_MS block with trellis Fixes: use of uninitialized memory Fixes: 98u4sU59NEf4 Fixes: AISLE-2026-0150-00113 Use of uninitialized memory Replicated through UnModified FFmpeg with Valgrind Found-by: Joshua Rogers (AISLE) (cherry picked from commit fb13409aaffc151f602ad357db46052e98ea46e8) Signed-off-by: Michael Niedermayer <[email protected]> --- libavcodec/adpcmenc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/adpcmenc.c b/libavcodec/adpcmenc.c index cd6b330554..fd8ce9e367 100644 --- a/libavcodec/adpcmenc.c +++ b/libavcodec/adpcmenc.c @@ -782,9 +782,9 @@ static int adpcm_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, if (!buf) return AVERROR(ENOMEM); if (channels == 1) { - adpcm_compress_trellis(avctx, samples, buf, &c->status[0], n, + adpcm_compress_trellis(avctx, samples, buf, &c->status[0], 2 * n, channels); - for (int i = 0; i < n; i += 2) + for (int i = 0; i < 2 * n; i += 2) *dst++ = (buf[i] << 4) | buf[i + 1]; } else { adpcm_compress_trellis(avctx, samples, buf, -- 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]
