changeset 6773:ec58e76c25a3 libavcodec

fix reading of samples-per-frame
author jbr
date Sun, 11 May 2008 04:25:34 +0000
parents 695f4ab2db4c
children ca449dc51bd7
files alac.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;