changeset 7943:3ff31e4454cd libavcodec

Downgrade severity of leftover bits in header packets, and don't check for the comment header
author conrad
date Tue, 30 Sep 2008 04:18:22 +0000
parents 64f35acc2407
children 518521276932
files vp3.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/vp3.c	Tue Sep 30 01:45:53 2008 +0000
+++ b/vp3.c	Tue Sep 30 04:18:22 2008 +0000
@@ -2596,8 +2596,8 @@
             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;
   }