fix reading of samples-per-frame

Originally committed as revision 13111 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Justin Ruggles 17 years ago
parent a52000f291
commit 59d598b923
  1. 2
      libavcodec/alac.c

@ -457,7 +457,7 @@ static int alac_decode_frame(AVCodecContext *avctx,
if (hassize) { if (hassize) {
/* now read the number of samples as a 32bit integer */ /* 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){ 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); av_log(avctx, AV_LOG_ERROR, "outputsamples %d > %d\n", outputsamples, alac->setinfo_max_samples_per_frame);
return -1; return -1;

Loading…
Cancel
Save