Mercurial > libavcodec.hg
diff h263dec.c @ 8612:b20c590170cc libavcodec
remove ff_get_fourcc() and use AV_RL32() instead
author | aurel |
---|---|
date | Sat, 17 Jan 2009 12:21:01 +0000 |
parents | 68e959302527 |
children | 04423b2f6e0b |
line wrap: on
line diff
--- a/h263dec.c Sat Jan 17 11:13:33 2009 +0000 +++ b/h263dec.c Sat Jan 17 12:21:01 2009 +0000 @@ -421,19 +421,19 @@ avctx->has_b_frames= !s->low_delay; if(s->xvid_build==0 && s->divx_version==0 && s->lavc_build==0){ - if(s->stream_codec_tag == ff_get_fourcc("XVID") || - s->codec_tag == ff_get_fourcc("XVID") || s->codec_tag == ff_get_fourcc("XVIX") || - s->codec_tag == ff_get_fourcc("RMP4")) + if(s->stream_codec_tag == AV_RL32("XVID") || + s->codec_tag == AV_RL32("XVID") || s->codec_tag == AV_RL32("XVIX") || + s->codec_tag == AV_RL32("RMP4")) s->xvid_build= -1; #if 0 - if(s->codec_tag == ff_get_fourcc("DIVX") && s->vo_type==0 && s->vol_control_parameters==1 + if(s->codec_tag == AV_RL32("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->codec_tag == ff_get_fourcc("DIVX") && s->vo_type==0 && s->vol_control_parameters==0) + if(s->codec_tag == AV_RL32("DIVX") && s->vo_type==0 && s->vol_control_parameters==0) s->divx_version= 400; //divx 4 } @@ -443,10 +443,10 @@ } if(s->workaround_bugs&FF_BUG_AUTODETECT){ - if(s->codec_tag == ff_get_fourcc("XVIX")) + if(s->codec_tag == AV_RL32("XVIX")) s->workaround_bugs|= FF_BUG_XVID_ILACE; - if(s->codec_tag == ff_get_fourcc("UMP4")){ + if(s->codec_tag == AV_RL32("UMP4")){ s->workaround_bugs|= FF_BUG_UMP4; }