[FFmpeg-cvslog] avcodec/metasound: use init_get_bits8()
Paul B Mahol
git at videolan.org
Fri Feb 3 21:38:20 EET 2017
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Fri Feb 3 20:29:27 2017 +0100| [2b707018bca80496d52ccfd2777af98cc0a21546] | committer: Paul B Mahol
avcodec/metasound: 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=2b707018bca80496d52ccfd2777af98cc0a21546
---
libavcodec/metasound.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/libavcodec/metasound.c b/libavcodec/metasound.c
index 6a7e31a2..87cd7cb 100644
--- a/libavcodec/metasound.c
+++ b/libavcodec/metasound.c
@@ -170,9 +170,10 @@ static int metasound_read_bitstream(AVCodecContext *avctx, TwinVQContext *tctx,
int channels = tctx->avctx->channels;
int sub;
GetBitContext gb;
- int i, j, k;
+ int i, j, k, ret;
- init_get_bits(&gb, buf, buf_size * 8);
+ if ((ret = init_get_bits8(&gb, buf, buf_size)) < 0)
+ return ret;
for (tctx->cur_frame = 0; tctx->cur_frame < tctx->frames_per_packet;
tctx->cur_frame++) {
More information about the ffmpeg-cvslog
mailing list