From d671e2feac59bb5bb6c2883980eadb92e0c8ac89 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 28 Feb 2003 01:59:56 +0000 Subject: fixing padding bug autodetection for some rare files, closes bug #647941 Originally committed as revision 1613 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/h263dec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libavcodec') diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c index 6540182492..3fd7fb3ab6 100644 --- a/libavcodec/h263dec.c +++ b/libavcodec/h263dec.c @@ -530,9 +530,11 @@ retry: if(s->divx_version) s->workaround_bugs|= FF_BUG_DIRECT_BLOCKSIZE; //printf("padding_bug_score: %d\n", s->padding_bug_score); + if(s->divx_version==501 && s->divx_build==20020416) + s->padding_bug_score= 256*256*256*64; #if 0 if(s->divx_version==500) - s->workaround_bugs|= FF_BUG_NO_PADDING; + s->padding_bug_score= 256*256*256*64; /* very ugly XVID padding bug detection FIXME/XXX solve this differently * lets hope this at least works -- cgit v1.2.3