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

faust3 subversion at mplayerhq.hu
Sun Jun 15 17:08:41 CEST 2008


Author: faust3
Date: Sun Jun 15 17:08:40 2008
New Revision: 2459

Log:
count all frames

Modified:
   wmapro/wma3dec.c

Modified: wmapro/wma3dec.c
==============================================================================
--- wmapro/wma3dec.c	(original)
+++ wmapro/wma3dec.c	Sun Jun 15 17:08:40 2008
@@ -50,6 +50,7 @@ typedef struct WMA3DecodeContext {
     unsigned int        packet_loss;
 
     // General frame info
+    unsigned int        frame_num;
     int                 len_prefix; //< true if the frame is prefixed with its len
     int                 allow_subframes;
     int                 max_num_subframes;
@@ -180,6 +181,8 @@ static int wma_decode_frame(WMA3DecodeCo
 
     /* decode trailer bit */
     more_frames = get_bits1(gb);
+
+    ++s->frame_num;
     return more_frames;
 }
 



More information about the FFmpeg-soc mailing list