comparison h263dec.c @ 1088:bb27c685fc72 libavcodec

fixing padding bug autodetection for some rare files, closes bug #647941
author michaelni
date Fri, 28 Feb 2003 01:59:56 +0000
parents b32afefe7d33
children b7f267d168b7
comparison
equal deleted inserted replaced
1087:7f10d38721ed 1088:bb27c685fc72
528 s->workaround_bugs|= FF_BUG_DIRECT_BLOCKSIZE; 528 s->workaround_bugs|= FF_BUG_DIRECT_BLOCKSIZE;
529 529
530 if(s->divx_version) 530 if(s->divx_version)
531 s->workaround_bugs|= FF_BUG_DIRECT_BLOCKSIZE; 531 s->workaround_bugs|= FF_BUG_DIRECT_BLOCKSIZE;
532 //printf("padding_bug_score: %d\n", s->padding_bug_score); 532 //printf("padding_bug_score: %d\n", s->padding_bug_score);
533 if(s->divx_version==501 && s->divx_build==20020416)
534 s->padding_bug_score= 256*256*256*64;
533 #if 0 535 #if 0
534 if(s->divx_version==500) 536 if(s->divx_version==500)
535 s->workaround_bugs|= FF_BUG_NO_PADDING; 537 s->padding_bug_score= 256*256*256*64;
536 538
537 /* very ugly XVID padding bug detection FIXME/XXX solve this differently 539 /* very ugly XVID padding bug detection FIXME/XXX solve this differently
538 * lets hope this at least works 540 * lets hope this at least works
539 */ 541 */
540 if( s->resync_marker==0 && s->data_partitioning==0 && s->divx_version==0 542 if( s->resync_marker==0 && s->data_partitioning==0 && s->divx_version==0