diff options
author | Rostislav Pehlivanov <atomnuker@gmail.com> | 2016-07-12 10:44:24 +0100 |
---|---|---|
committer | Rostislav Pehlivanov <atomnuker@gmail.com> | 2016-07-12 10:44:24 +0100 |
commit | a337cb73614225b8a7031d664a4a63c563265cd9 (patch) | |
tree | fe21c9d5a9dffe57750cd498a22823eadc66998b /libavcodec | |
parent | df1dc52195a5ccd43230f89c7bf24f77942e6f60 (diff) | |
download | ffmpeg-a337cb73614225b8a7031d664a4a63c563265cd9.tar.gz |
diracdec: fix #coeffs -> byte conversion
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/diracdec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/diracdec.c b/libavcodec/diracdec.c index c6a207b1c8..9275c509cb 100644 --- a/libavcodec/diracdec.c +++ b/libavcodec/diracdec.c @@ -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); } |