diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2003-09-10 11:28:18 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-09-10 11:28:18 +0000 |
commit | 8fc6c2b5372066d39c32423959e7c523ed47bf7d (patch) | |
tree | 8d671c8eb7bd21a364476ea5370efc9052b5aa6d /libavcodec/h263dec.c | |
parent | 2187d9482edb98c7060266a9dc9fda314ae7e7be (diff) | |
download | ffmpeg-8fc6c2b5372066d39c32423959e7c523ed47bf7d.tar.gz |
detect old xvid with fourcc=DIVX
remove "this file was encoded with ..." stuff (use debug=4096 if u want to know that)
Originally committed as revision 2253 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h263dec.c')
-rw-r--r-- | libavcodec/h263dec.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c index aa1db85b38..3701aa51f2 100644 --- a/libavcodec/h263dec.c +++ b/libavcodec/h263dec.c @@ -484,6 +484,10 @@ retry: 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")) s->xvid_build= -1; + + 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; if(s->avctx->codec_tag == ff_get_fourcc("DIVX") && s->vo_type==0 && s->vol_control_parameters==0) s->divx_version= 400; //divx 4 @@ -577,6 +581,11 @@ retry: SET_QPEL_FUNC(qpel_pixels_tab[1][15], qpel8_mc33_old_c) } + if(avctx->debug & FF_DEBUG_BUGS) + printf("bugs: %X lavc_build:%d xvid_build:%d divx_version:%d divx_build:%d %s\n", + s->workaround_bugs, s->lavc_build, s->xvid_build, s->divx_version, s->divx_build, + s->divx_packed ? "p" : ""); + #if 0 // dump bits per frame / qp / complexity { static FILE *f=NULL; |