Commit c1e292ea authored by Michael Niedermayer's avatar Michael Niedermayer

fixing playback of xvid pretending to be divx (sample_vop_nc.avi)

Originally committed as revision 4021 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 885e88d2
......@@ -5991,7 +5991,7 @@ int ff_mpeg4_decode_picture_header(MpegEncContext * s, GetBitContext *gb)
startcode = ((startcode << 8) | v) & 0xffffffff;
if(get_bits_count(gb) >= gb->size_in_bits){
if(gb->size_in_bits==8 && s->divx_version){
if(gb->size_in_bits==8 && (s->divx_version || s->xvid_build)){
av_log(s->avctx, AV_LOG_ERROR, "frame skip %d\n", gb->size_in_bits);
return FRAME_SKIPED; //divx bug
}else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment