[FFmpeg-cvslog] avcodec/apedec: use init_get_bits8()
Paul B Mahol
git at videolan.org
Wed Oct 30 12:41:52 CET 2013
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Tue Oct 29 10:53:53 2013 +0000| [49c6f0ae15a04e580b4c653dfa7f9ca8bf51a1ca] | committer: Paul B Mahol
avcodec/apedec: use init_get_bits8()
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=49c6f0ae15a04e580b4c653dfa7f9ca8bf51a1ca
---
libavcodec/apedec.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavcodec/apedec.c b/libavcodec/apedec.c
index ea71ea0..6ec502b 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
More information about the ffmpeg-cvslog
mailing list