Browse Source

avcodec/evrcdec: use init_get_bits8()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
tags/n2.6
Paul B Mahol 10 years ago
parent
commit
cecc4ea1fc
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavcodec/evrcdec.c

+ 2
- 1
libavcodec/evrcdec.c 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);


Loading…
Cancel
Save