mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
diracdec: fix #coeffs -> byte conversion
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
This commit is contained in:
parent
df1dc52195
commit
a337cb7361
@ -854,8 +854,8 @@ static int decode_hq_slice(DiracContext *s, DiracSlice *slice, uint8_t *tmp_buf)
|
||||
length, tmp_buf, coef_num);
|
||||
|
||||
if (coef_num > coef_par) {
|
||||
const int start_b = coef_par * (4 >> s->pshift);
|
||||
const int end_b = coef_num * (4 >> s->pshift);
|
||||
const int start_b = coef_par * (1 << (s->pshift + 1));
|
||||
const int end_b = coef_num * (1 << (s->pshift + 1));
|
||||
memset(&tmp_buf[start_b], 0, end_b - start_b);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user