[FFmpeg-soc] [soc]: r3766 - wmapro/wma3dec.c

faust3 subversion at mplayerhq.hu
Fri Oct 24 19:47:09 CEST 2008


Author: faust3
Date: Fri Oct 24 19:47:09 2008
New Revision: 3766

Log:
print what looks like the blocksize/windowlength

Modified:
   wmapro/wma3dec.c

Modified: wmapro/wma3dec.c
==============================================================================
--- wmapro/wma3dec.c	(original)
+++ wmapro/wma3dec.c	Fri Oct 24 19:47:09 2008
@@ -444,11 +444,20 @@ static int wma_decode_frame(WMA3DecodeCo
     if(get_bits(gb,1)){
         s->update_samples_per_frame = get_bits1(gb);
 
+        /** usually true for the first frame */
         if(s->update_samples_per_frame){
-            get_bits(gb,av_log2(s->samples_per_frame * 2));
+            av_log(s->avctx,AV_LOG_INFO,"blocksize: %i\n",get_bits(gb,av_log2(s->samples_per_frame * 2)));
         }
-     }
+
+        /** sometimes true for the last frame */
+        if(get_bits(gb,1)){
+            av_log(s->avctx,AV_LOG_INFO,"end blocksize: %i\n",get_bits(gb,av_log2(s->samples_per_frame * 2)));
+        }
+
+    }
+
     /** skip the rest of the frame data */
+    av_log(s->avctx,AV_LOG_INFO,"skipping %i bits\n",len - (get_bits_count(gb) - gb_start_count) - 1);
     skip_bits_long(gb,len - (get_bits_count(gb) - gb_start_count) - 1);
 
     /** decode trailer bit */



More information about the FFmpeg-soc mailing list