PR #22625 opened by Priyanshuthapliyal URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/22625 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/22625.patch
Fix mantissa unpacking in the compressed partA_flag path. larray is not incremented when reading mantissas, causing repeated values. Assignment should only apply to samples where raw_samples[c][i] == 0, consistent with nchars accounting and the Part B path, which consumes larray with an explicit index. Signed-off-by: Priyanshu Thapliyal <[email protected]> >From c19e3c7d299388a3f4e23101ab59336940798607 Mon Sep 17 00:00:00 2001 From: Priyanshu Thapliyal <[email protected]> Date: Thu, 26 Mar 2026 17:59:15 +0530 Subject: [PATCH] avcodec/alsdec: fix mantissa unpacking in compressed Part A path Signed-off-by: Priyanshu Thapliyal <[email protected]> --- libavcodec/alsdec.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c index e91ff57b03..242080a96d 100644 --- a/libavcodec/alsdec.c +++ b/libavcodec/alsdec.c @@ -1548,8 +1548,12 @@ static int read_diff_float_data(ALSDecContext *ctx, unsigned int ra_frame) { return AVERROR_INVALIDDATA; } + j = 0; for (i = 0; i < frame_length; ++i) { - ctx->raw_mantissa[c][i] = AV_RB32(larray); + if (ctx->raw_samples[c][i] == 0) { + ctx->raw_mantissa[c][i] = AV_RB32(larray + j); + j += 4; + } } } } -- 2.52.0 _______________________________________________ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]
