[FFmpeg-cvslog] avcodec/fraps: use init_get_bits8()
Paul B Mahol
git at videolan.org
Thu Sep 3 11:48:04 CEST 2015
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Thu Sep 3 09:40:49 2015 +0000| [9136e65c405bcabf33e524ea79edf2a07831a7c3] | committer: Paul B Mahol
avcodec/fraps: 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=9136e65c405bcabf33e524ea79edf2a07831a7c3
---
libavcodec/fraps.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/libavcodec/fraps.c b/libavcodec/fraps.c
index 8dcd0ae..2d4d5c4 100644
--- a/libavcodec/fraps.c
+++ b/libavcodec/fraps.c
@@ -105,7 +105,9 @@ static int fraps2_decode_plane(FrapsContext *s, uint8_t *dst, int stride, int w,
s->bdsp.bswap_buf((uint32_t *) s->tmpbuf,
(const uint32_t *) src, size >> 2);
- init_get_bits(&gb, s->tmpbuf, size * 8);
+ if ((ret = init_get_bits8(&gb, s->tmpbuf, size)) < 0)
+ return ret;
+
for (j = 0; j < h; j++) {
for (i = 0; i < w*step; i += step) {
dst[i] = get_vlc2(&gb, vlc.table, VLC_BITS, 3);
More information about the ffmpeg-cvslog
mailing list