1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

avcodec/hqx: use init_get_bits8()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol 2015-02-27 09:30:13 +00:00
parent 5440076303
commit aa7a2fa58f

View File

@ -590,8 +590,8 @@ static int hqx_decode_frame(AVCodecContext *avctx, void *data,
av_log(avctx, AV_LOG_ERROR, "Invalid slice size.\n"); av_log(avctx, AV_LOG_ERROR, "Invalid slice size.\n");
break; break;
} }
ret = init_get_bits(&gb, src + slice_off[slice], ret = init_get_bits8(&gb, src + slice_off[slice],
(slice_off[slice + 1] - slice_off[slice]) * 8); slice_off[slice + 1] - slice_off[slice]);
if (ret < 0) if (ret < 0)
return ret; return ret;
ret = decode_slice(ctx, pic, &gb, slice, decode_func); ret = decode_slice(ctx, pic, &gb, slice, decode_func);