changeset 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 8256f8ec2fac
children e0e53ab5a77a
files h263.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/h263.c	Tue Jul 10 03:40:37 2007 +0000
+++ b/h263.c	Tue Jul 10 08:40:00 2007 +0000
@@ -2461,6 +2461,8 @@
     int time_incr;
     int time_div, time_mod;
 
+    if (!ENABLE_MPEG4_ENCODER)  return;
+
     if(s->pict_type==I_TYPE){
         if(!(s->flags&CODEC_FLAG_GLOBAL_HEADER)){
             if(s->strict_std_compliance < FF_COMPLIANCE_VERY_STRICT) //HACK, the reference sw is buggy