diff options
author | Paul B Mahol <onemda@gmail.com> | 2013-10-29 10:53:53 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2013-10-30 11:04:06 +0000 |
commit | 49c6f0ae15a04e580b4c653dfa7f9ca8bf51a1ca (patch) | |
tree | 1a7e820c3c51b81eb12e01814b6e98b23f2b2de9 /libavcodec/apedec.c | |
parent | 2508fa10c6189a093752af2ef75772a5312ea39a (diff) | |
download | ffmpeg-49c6f0ae15a04e580b4c653dfa7f9ca8bf51a1ca.tar.gz |
avcodec/apedec: use init_get_bits8()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/apedec.c')
-rw-r--r-- | libavcodec/apedec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/apedec.c b/libavcodec/apedec.c index ea71ea0ef3..6ec502b796 100644 --- a/libavcodec/apedec.c +++ b/libavcodec/apedec.c @@ -1456,7 +1456,8 @@ static int ape_decode_frame(AVCodecContext *avctx, void *data, } s->ptr += offset; } else { - init_get_bits(&s->gb, s->ptr, (s->data_end - s->ptr) * 8); + if ((ret = init_get_bits8(&s->gb, s->ptr, s->data_end - s->ptr)) < 0) + return ret; if (s->fileversion > 3800) skip_bits_long(&s->gb, offset * 8); else |