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

faust3 subversion at mplayerhq.hu
Fri May 22 19:27:34 CEST 2009


Author: faust3
Date: Fri May 22 19:27:34 2009
New Revision: 4288

Log:
initialize the bitstream reader in wma_save_bits

Modified:
   wmapro/wma3dec.c

Modified: wmapro/wma3dec.c
==============================================================================
--- wmapro/wma3dec.c	Fri May 22 19:20:52 2009	(r4287)
+++ wmapro/wma3dec.c	Fri May 22 19:27:34 2009	(r4288)
@@ -1356,8 +1356,6 @@ static int wma_decode_frame(WMA3DecodeCo
     int len = 0;
     int i;
 
-    init_get_bits(&s->getbit, s->frame_data,s->prev_packet_bit_size);
-
     /** check for potential output buffer overflow */
     if(s->samples + s->num_channels * s->samples_per_frame > s->samples_end){
         av_log(s->avctx,AV_LOG_ERROR,"not enough space for the output samples\n");
@@ -1528,6 +1526,8 @@ static void wma_save_bits(WMA3DecodeCont
     /** copy remaining bits */
     if(len > 0)
         s->frame_data[pos++] = get_bits(gb,len) << (8 - len);
+
+    init_get_bits(&s->getbit, s->frame_data,s->prev_packet_bit_size);
 }
 
 /**


More information about the FFmpeg-soc mailing list