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

faust3 subversion at mplayerhq.hu
Sat Jun 20 17:31:33 CEST 2009


Author: faust3
Date: Sat Jun 20 17:31:32 2009
New Revision: 4492

Log:
Do not try to save remaining frame data when all bits are already processed
Fixes an invalid error message with
Beethovens nionde symfoni (Scherzo)-2.wma

Modified:
   wmapro/wma3dec.c

Modified: wmapro/wma3dec.c
==============================================================================
--- wmapro/wma3dec.c	Sat Jun 20 13:24:19 2009	(r4491)
+++ wmapro/wma3dec.c	Sat Jun 20 17:31:32 2009	(r4492)
@@ -1661,7 +1661,7 @@ static int decode_packet(AVCodecContext 
             more_frames = 0;
     }
 
-    if (!s->packet_loss) {
+    if (!s->packet_loss && remaining_bits(s,&gb) > 0) {
         /** save the rest of the data so that it can be decoded
             with the next packet */
         save_bits(s, &gb, remaining_bits(s,&gb), 0);


More information about the FFmpeg-soc mailing list