[FFmpeg-cvslog] alac: use init_get_bits8()
Paul B Mahol
git at videolan.org
Wed May 29 15:40:45 CEST 2013
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Wed May 29 12:37:33 2013 +0000| [b257d9a01fcc2fa54a62e46d3d442d3131556055] | committer: Paul B Mahol
alac: 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=b257d9a01fcc2fa54a62e46d3d442d3131556055
---
libavcodec/alac.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavcodec/alac.c b/libavcodec/alac.c
index 0018b9a..751b40b 100644
--- a/libavcodec/alac.c
+++ b/libavcodec/alac.c
@@ -443,7 +443,8 @@ static int alac_decode_frame(AVCodecContext *avctx, void *data,
int channels;
int ch, ret, got_end;
- init_get_bits(&alac->gb, avpkt->data, avpkt->size * 8);
+ if ((ret = init_get_bits8(&alac->gb, avpkt->data, avpkt->size)) < 0)
+ return ret;
got_end = 0;
alac->nb_samples = 0;
More information about the ffmpeg-cvslog
mailing list