Mercurial > libavcodec.hg
comparison h263dec.c @ 1457:460e5ead6722 libavcodec
detect old xvid with fourcc=DIVX
remove "this file was encoded with ..." stuff (use debug=4096 if u want to know that)
author | michaelni |
---|---|
date | Wed, 10 Sep 2003 11:28:18 +0000 |
parents | 20a79b0e6d2a |
children | 40b69d238beb |
comparison
equal
deleted
inserted
replaced
1456:670fca257a69 | 1457:460e5ead6722 |
---|---|
482 avctx->has_b_frames= !s->low_delay; | 482 avctx->has_b_frames= !s->low_delay; |
483 | 483 |
484 if(s->xvid_build==0 && s->divx_version==0 && s->lavc_build==0){ | 484 if(s->xvid_build==0 && s->divx_version==0 && s->lavc_build==0){ |
485 if(s->avctx->codec_tag == ff_get_fourcc("XVID") || s->avctx->codec_tag == ff_get_fourcc("XVIX")) | 485 if(s->avctx->codec_tag == ff_get_fourcc("XVID") || s->avctx->codec_tag == ff_get_fourcc("XVIX")) |
486 s->xvid_build= -1; | 486 s->xvid_build= -1; |
487 | |
488 if(s->avctx->codec_tag == ff_get_fourcc("DIVX") && s->vo_type==0 && s->vol_control_parameters==1 | |
489 && s->padding_bug_score > 0 && s->low_delay) // XVID with modified fourcc | |
490 s->xvid_build= -1; | |
487 | 491 |
488 if(s->avctx->codec_tag == ff_get_fourcc("DIVX") && s->vo_type==0 && s->vol_control_parameters==0) | 492 if(s->avctx->codec_tag == ff_get_fourcc("DIVX") && s->vo_type==0 && s->vol_control_parameters==0) |
489 s->divx_version= 400; //divx 4 | 493 s->divx_version= 400; //divx 4 |
490 } | 494 } |
491 | 495 |
575 SET_QPEL_FUNC(qpel_pixels_tab[1][11], qpel8_mc32_old_c) | 579 SET_QPEL_FUNC(qpel_pixels_tab[1][11], qpel8_mc32_old_c) |
576 SET_QPEL_FUNC(qpel_pixels_tab[1][13], qpel8_mc13_old_c) | 580 SET_QPEL_FUNC(qpel_pixels_tab[1][13], qpel8_mc13_old_c) |
577 SET_QPEL_FUNC(qpel_pixels_tab[1][15], qpel8_mc33_old_c) | 581 SET_QPEL_FUNC(qpel_pixels_tab[1][15], qpel8_mc33_old_c) |
578 } | 582 } |
579 | 583 |
584 if(avctx->debug & FF_DEBUG_BUGS) | |
585 printf("bugs: %X lavc_build:%d xvid_build:%d divx_version:%d divx_build:%d %s\n", | |
586 s->workaround_bugs, s->lavc_build, s->xvid_build, s->divx_version, s->divx_build, | |
587 s->divx_packed ? "p" : ""); | |
588 | |
580 #if 0 // dump bits per frame / qp / complexity | 589 #if 0 // dump bits per frame / qp / complexity |
581 { | 590 { |
582 static FILE *f=NULL; | 591 static FILE *f=NULL; |
583 if(!f) f=fopen("rate_qp_cplx.txt", "w"); | 592 if(!f) f=fopen("rate_qp_cplx.txt", "w"); |
584 fprintf(f, "%d %d %f\n", buf_size, s->qscale, buf_size*(double)s->qscale); | 593 fprintf(f, "%d %d %f\n", buf_size, s->qscale, buf_size*(double)s->qscale); |