aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/alac.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-05-29 12:37:33 +0000
committerPaul B Mahol <onemda@gmail.com>2013-05-29 12:37:33 +0000
commitb257d9a01fcc2fa54a62e46d3d442d3131556055 (patch)
tree41ea15a6121f778198f9adf3176f9ad61338f2f7 /libavcodec/alac.c
parent7469be099e90314fac4188f7140d14e730615975 (diff)
downloadffmpeg-b257d9a01fcc2fa54a62e46d3d442d3131556055.tar.gz
alac: use init_get_bits8()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/alac.c')
-rw-r--r--libavcodec/alac.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/alac.c b/libavcodec/alac.c
index 0018b9aedb..751b40b046 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;