mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-20 21:00:41 +08:00
avcodec/alsdec: preserve full float value in zero-truncated samples
Signed-off-by: Priyanshu Thapliyal <priyanshuthapliyal2005@gmail.com>
This commit is contained in:
committed by
michaelni
parent
febc82690d
commit
d1bcaab230
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user