Mercurial > libavcodec.hg
diff h263dec.c @ 1458:40b69d238beb libavcodec
AVI stream header FCC / more reliable detection of old xvid files
author | michaelni |
---|---|
date | Wed, 10 Sep 2003 23:40:55 +0000 |
parents | 460e5ead6722 |
children | c7858e2bd1c1 |
line wrap: on
line diff
--- a/h263dec.c Wed Sep 10 11:28:18 2003 +0000 +++ b/h263dec.c Wed Sep 10 23:40:55 2003 +0000 @@ -482,13 +482,17 @@ avctx->has_b_frames= !s->low_delay; if(s->xvid_build==0 && s->divx_version==0 && s->lavc_build==0){ - if(s->avctx->codec_tag == ff_get_fourcc("XVID") || s->avctx->codec_tag == ff_get_fourcc("XVIX")) + if(s->avctx->stream_codec_tag == ff_get_fourcc("XVID") || + s->avctx->codec_tag == ff_get_fourcc("XVID") || s->avctx->codec_tag == ff_get_fourcc("XVIX")) s->xvid_build= -1; - +#if 0 if(s->avctx->codec_tag == ff_get_fourcc("DIVX") && s->vo_type==0 && s->vol_control_parameters==1 && s->padding_bug_score > 0 && s->low_delay) // XVID with modified fourcc s->xvid_build= -1; +#endif + } + if(s->xvid_build==0 && s->divx_version==0 && s->lavc_build==0){ if(s->avctx->codec_tag == ff_get_fourcc("DIVX") && s->vo_type==0 && s->vol_control_parameters==0) s->divx_version= 400; //divx 4 }