[soc]: r4143 - wmapro/wma3dec.c
Author: faust3 Date: Mon Mar 2 19:18:20 2009 New Revision: 4143 Log: leave main decoding loop if packet loss was detected Modified: wmapro/wma3dec.c Modified: wmapro/wma3dec.c ============================================================================== --- wmapro/wma3dec.c Sun Mar 1 21:57:34 2009 (r4142) +++ wmapro/wma3dec.c Mon Mar 2 19:18:20 2009 (r4143) @@ -1591,7 +1591,7 @@ static int wma3_decode_packet(AVCodecCon s->prev_packet_bit_size = 0; s->packet_loss = 0; /** decode the rest of the packet */ - while(more_frames && remaining_bits(s,&gb) > s->log2_frame_size){ + while(!s->packet_loss && more_frames && remaining_bits(s,&gb) > s->log2_frame_size){ int frame_size = show_bits(&gb, s->log2_frame_size); /** there is enough data for a full frame */
participants (1)
-
faust3