You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
alsdec: fix number of decoded samples in first sub-block in BGMC mode.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
committed by
Michael Niedermayer
parent
44c4170c52
commit
2837d8dc27
@@ -785,10 +785,10 @@ static int read_var_block_data(ALSDecContext *ctx, ALSBlockData *bd)
|
|||||||
k [sb] = s[sb] > b ? s[sb] - b : 0;
|
k [sb] = s[sb] > b ? s[sb] - b : 0;
|
||||||
delta[sb] = 5 - s[sb] + k[sb];
|
delta[sb] = 5 - s[sb] + k[sb];
|
||||||
|
|
||||||
ff_bgmc_decode(gb, sb_length, current_res,
|
ff_bgmc_decode(gb, sb_length - i, current_res,
|
||||||
delta[sb], sx[sb], &high, &low, &value, ctx->bgmc_lut, ctx->bgmc_lut_status);
|
delta[sb], sx[sb], &high, &low, &value, ctx->bgmc_lut, ctx->bgmc_lut_status);
|
||||||
|
|
||||||
current_res += sb_length;
|
current_res += sb_length - i;
|
||||||
}
|
}
|
||||||
|
|
||||||
ff_bgmc_decode_end(gb);
|
ff_bgmc_decode_end(gb);
|
||||||
|
Reference in New Issue
Block a user