From d1bcaab230917250455bc66cefa05b7e77a651ef 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 --- libavcodec/alsdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c index a156c90390..bf1b453dbb 100644 --- a/libavcodec/alsdec.c +++ b/libavcodec/alsdec.c @@ -1638,7 +1638,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);