avcodec/alsdec: fix mantissa unpacking in compressed Part A path

Signed-off-by: Priyanshu Thapliyal <priyanshuthapliyal2005@gmail.com>
(cherry picked from commit ae6f233988)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Priyanshu Thapliyal
2026-03-26 17:59:15 +05:30
committed by Michael Niedermayer
parent 520a3042d2
commit e586dd1fe5
+5 -1
View File
@@ -1529,8 +1529,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;
}
}
}
}