[FFmpeg-cvslog] r15469 - trunk/libavcodec/vp3.c

conrad subversion
Tue Sep 30 06:18:22 CEST 2008


Author: conrad
Date: Tue Sep 30 06:18:22 2008
New Revision: 15469

Log:
Downgrade severity of leftover bits in header packets, and don't check for the comment header

Modified:
   trunk/libavcodec/vp3.c

Modified: trunk/libavcodec/vp3.c
==============================================================================
--- trunk/libavcodec/vp3.c	(original)
+++ trunk/libavcodec/vp3.c	Tue Sep 30 06:18:22 2008
@@ -2596,8 +2596,8 @@ static int theora_decode_init(AVCodecCon
             av_log(avctx, AV_LOG_ERROR, "Unknown Theora config packet: %d\n", ptype&~0x80);
             break;
     }
-    if(8*header_len[i] != get_bits_count(&gb))
-        av_log(avctx, AV_LOG_ERROR, "%d bits left in packet %X\n", 8*header_len[i] - get_bits_count(&gb), ptype);
+    if(ptype != 0x81 && 8*header_len[i] != get_bits_count(&gb))
+        av_log(avctx, AV_LOG_WARNING, "%d bits left in packet %X\n", 8*header_len[i] - get_bits_count(&gb), ptype);
     if (s->theora < 0x030200)
         break;
   }




More information about the ffmpeg-cvslog mailing list