From ce2b4727a9beb1a7afac6d16a5473e7a3d10d117 Mon Sep 17 00:00:00 2001 From: Priyanshu Thapliyal Date: Fri, 27 Mar 2026 14:22:45 +0530 Subject: [PATCH] avcodec/alsdec: preserve full float value in zero-truncated samples Signed-off-by: Priyanshu Thapliyal (cherry picked from commit d1bcaab230917250455bc66cefa05b7e77a651ef) Signed-off-by: Michael Niedermayer --- libavcodec/alsdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c index 7d1941a659..e453aae9e5 100644 --- a/libavcodec/alsdec.c +++ b/libavcodec/alsdec.c @@ -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);