avcodec/evrcdec: use init_get_bits8()
authorPaul B Mahol <onemda@gmail.com>
Tue, 3 Feb 2015 15:54:59 +0000 (15:54 +0000)
committerPaul B Mahol <onemda@gmail.com>
Wed, 4 Feb 2015 09:45:42 +0000 (09:45 +0000)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavcodec/evrcdec.c

index 20d0fe7..c605a13 100644 (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);