aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol2015-02-03 15:54:59 +0000
committerPaul B Mahol2015-02-04 09:45:42 +0000
commitcecc4ea1fc2fe124d7036809f824a93bcc5aaa21 (patch)
treed1a0b5c5c4256276c583dd0ed44b118a3d5c967f
parent63cb546f0a55ca0353880e6c9b3735706b0abc23 (diff)
avcodec/evrcdec: use init_get_bits8()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r--libavcodec/evrcdec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/evrcdec.c b/libavcodec/evrcdec.c
index 20d0fe7cd4..c605a13d74 100644
--- a/libavcodec/evrcdec.c
+++ b/libavcodec/evrcdec.c
@@ -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);