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

avcodec/evrcdec: use init_get_bits8()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol 2015-02-03 15:54:59 +00:00
parent 63cb546f0a
commit cecc4ea1fc

View File

@ -760,7 +760,8 @@ static int evrc_decode_frame(AVCodecContext *avctx, void *data,
&& !e->prev_error_flag)
goto erasure;
init_get_bits(&e->gb, buf, 8 * buf_size);
if ((ret = init_get_bits8(&e->gb, buf, buf_size)) < 0)
return ret;
memset(&e->frame, 0, sizeof(EVRCAFrame));
unpack_frame(e);