comparison h263.c @ 5268:7583133469f1 libavcodec

don't compile some mpeg4 encoder code when encoders are disabled
author aurel
date Tue, 10 Jul 2007 08:40:00 +0000
parents a5e1cc69033d
children 101f20612a94
comparison
equal deleted inserted replaced
5267:8256f8ec2fac 5268:7583133469f1
2459 void mpeg4_encode_picture_header(MpegEncContext * s, int picture_number) 2459 void mpeg4_encode_picture_header(MpegEncContext * s, int picture_number)
2460 { 2460 {
2461 int time_incr; 2461 int time_incr;
2462 int time_div, time_mod; 2462 int time_div, time_mod;
2463 2463
2464 if (!ENABLE_MPEG4_ENCODER) return;
2465
2464 if(s->pict_type==I_TYPE){ 2466 if(s->pict_type==I_TYPE){
2465 if(!(s->flags&CODEC_FLAG_GLOBAL_HEADER)){ 2467 if(!(s->flags&CODEC_FLAG_GLOBAL_HEADER)){
2466 if(s->strict_std_compliance < FF_COMPLIANCE_VERY_STRICT) //HACK, the reference sw is buggy 2468 if(s->strict_std_compliance < FF_COMPLIANCE_VERY_STRICT) //HACK, the reference sw is buggy
2467 mpeg4_encode_visual_object_header(s); 2469 mpeg4_encode_visual_object_header(s);
2468 if(s->strict_std_compliance < FF_COMPLIANCE_VERY_STRICT || picture_number==0) //HACK, the reference sw is buggy 2470 if(s->strict_std_compliance < FF_COMPLIANCE_VERY_STRICT || picture_number==0) //HACK, the reference sw is buggy