Mercurial > libavcodec.hg
diff alac.c @ 6773:ec58e76c25a3 libavcodec
fix reading of samples-per-frame
| author | jbr |
|---|---|
| date | Sun, 11 May 2008 04:25:34 +0000 |
| parents | cb04861f9e45 |
| children | 1926f42527c7 |
line wrap: on
line diff
--- a/alac.c Sun May 11 03:42:53 2008 +0000 +++ b/alac.c Sun May 11 04:25:34 2008 +0000 @@ -457,7 +457,7 @@ 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;
