[FFmpeg-cvslog] lavc/tta: use init_get_bits8()
Paul B Mahol
git at videolan.org
Wed May 29 15:40:42 CEST 2013
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Wed May 29 12:27:41 2013 +0000| [7469be099e90314fac4188f7140d14e730615975] | committer: Paul B Mahol
lavc/tta: 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=7469be099e90314fac4188f7140d14e730615975
---
libavcodec/tta.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavcodec/tta.c b/libavcodec/tta.c
index cd00b88..fd796d9 100644
--- a/libavcodec/tta.c
+++ b/libavcodec/tta.c
@@ -329,7 +329,8 @@ static int tta_decode_frame(AVCodecContext *avctx, void *data,
return AVERROR_INVALIDDATA;
}
- init_get_bits(&s->gb, buf, buf_size*8);
+ if ((ret = init_get_bits8(&s->gb, avpkt->data, avpkt->size)) < 0)
+ return ret;
/* get output buffer */
frame->nb_samples = framelen;
More information about the ffmpeg-cvslog
mailing list