Commit 0bea1dd0 authored by jbr's avatar jbr

fix reading of frames-per-sample

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13111 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 56653d80
......@@ -457,7 +457,7 @@ static int alac_decode_frame(AVCodecContext *avctx,
if (hassize) {
/* now read the number of samples as a 32bit integer */
outputsamples = get_bits(&alac->gb, 32);
outputsamples = get_bits_long(&alac->gb, 32);
if(outputsamples > alac->setinfo_max_samples_per_frame){
av_log(avctx, AV_LOG_ERROR, "outputsamples %d > %d\n", outputsamples, alac->setinfo_max_samples_per_frame);
return -1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment