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

faust3 subversion at mplayerhq.hu
Sat May 30 23:52:18 CEST 2009


Author: faust3
Date: Sat May 30 23:52:17 2009
New Revision: 4349

Log:
only try to decode frames when the frame size is larger than 0

Modified:
   wmapro/wma3dec.c

Modified: wmapro/wma3dec.c
==============================================================================
--- wmapro/wma3dec.c	Sat May 30 23:43:38 2009	(r4348)
+++ wmapro/wma3dec.c	Sat May 30 23:52:17 2009	(r4349)
@@ -1636,7 +1636,7 @@ static int wma_decode_packet(AVCodecCont
         int frame_size = show_bits(&gb, s->log2_frame_size);
 
         /** there is enough data for a full frame */
-        if(wma_remaining_bits(s,&gb) >= frame_size){
+        if(wma_remaining_bits(s,&gb) >= frame_size && frame_size > 0){
             wma_save_bits(s, &gb, frame_size, 0);
 
             /** decode the frame */


More information about the FFmpeg-soc mailing list