avcodec/alsdec: preserve full float value in zero-truncated samples

Signed-off-by: Priyanshu Thapliyal <priyanshuthapliyal2005@gmail.com>
(cherry picked from commit d1bcaab230)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Priyanshu Thapliyal
2026-03-27 14:22:45 +05:30
committed by Michael Niedermayer
parent eb1e36462a
commit ce2b4727a9
+1 -1
View File
@@ -1619,7 +1619,7 @@ static int read_diff_float_data(ALSDecContext *ctx, unsigned int ra_frame) {
tmp_32 = (sign << 31) | ((e + EXP_BIAS) << 23) | (mantissa);
ctx->raw_samples[c][i] = tmp_32;
} else {
ctx->raw_samples[c][i] = raw_mantissa[c][i] & 0x007fffffUL;
ctx->raw_samples[c][i] = raw_mantissa[c][i];
}
}
align_get_bits(gb);