# HG changeset patch # User jbr # Date 1210479934 0 # Node ID ec58e76c25a3f3745f51dd9e8ce61da038eeb28c # Parent 695f4ab2db4cb2dc11266d6a032fb9c9f5a4944d fix reading of samples-per-frame diff -r 695f4ab2db4c -r ec58e76c25a3 alac.c --- 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;