mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/magicyuv: make RLE table reading match reference
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
2f84f40d45
commit
fa3fd7f5a0
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue