Browse Source

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

Originally committed as revision 15469 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
David Conrad 17 years ago
parent
commit
12ce1f3fc1
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavcodec/vp3.c

+ 2
- 2
libavcodec/vp3.c View File

@@ -2596,8 +2596,8 @@ static int theora_decode_init(AVCodecContext *avctx)
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;
}


Loading…
Cancel
Save