aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2017-07-10 11:47:42 +0200
committerPaul B Mahol <onemda@gmail.com>2017-07-10 12:03:08 +0200
commitfa3fd7f5a003794da8969ec21688e870c03100d6 (patch)
tree903a0d158126e5185d60edc559352fc0baa58580 /libavcodec
parent2f84f40d451cec38571ef4a0c5d83d642800ce12 (diff)
downloadffmpeg-fa3fd7f5a003794da8969ec21688e870c03100d6.tar.gz
avcodec/magicyuv: make RLE table reading match reference
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/magicyuv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/magicyuv.c b/libavcodec/magicyuv.c
index 5f09c0be53..93b73d403d 100644
--- a/libavcodec/magicyuv.c
+++ b/libavcodec/magicyuv.c
@@ -438,9 +438,9 @@ static int build_huffman(AVCodecContext *avctx, GetBitContext *gbit, int max)
memset(s->len, 0, sizeof(s->len));
while (get_bits_left(gbit) >= 8) {
- int b = get_bits(gbit, 4);
- int x = get_bits(gbit, 4);
- int l = get_bitsz(gbit, b) + 1;
+ int b = get_bits(gbit, 1);
+ int x = get_bits(gbit, 7);
+ int l = get_bitsz(gbit, b * 8) + 1;
for (k = 0; k < l; k++)
if (j + k < max)