mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
fixing playback of xvid pretending to be divx (sample_vop_nc.avi)
Originally committed as revision 4021 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
885e88d252
commit
c1e292ea91
@ -5991,7 +5991,7 @@ int ff_mpeg4_decode_picture_header(MpegEncContext * s, GetBitContext *gb)
|
|||||||
startcode = ((startcode << 8) | v) & 0xffffffff;
|
startcode = ((startcode << 8) | v) & 0xffffffff;
|
||||||
|
|
||||||
if(get_bits_count(gb) >= gb->size_in_bits){
|
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);
|
av_log(s->avctx, AV_LOG_ERROR, "frame skip %d\n", gb->size_in_bits);
|
||||||
return FRAME_SKIPED; //divx bug
|
return FRAME_SKIPED; //divx bug
|
||||||
}else
|
}else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user