Do not redundantly check for preprocessor definitions of CONFIG_RV10_ENCODER or
authorDiego Biurrun <diego@biurrun.de>
Wed, 5 Aug 2009 10:46:43 +0000 (10:46 +0000)
committerDiego Biurrun <diego@biurrun.de>
Wed, 5 Aug 2009 10:46:43 +0000 (10:46 +0000)
CONFIG_RV20_ENCODER when also checking for CONFIG_H263_ENCODER.
The RV10/RV20 encoders depend on the H.263 encoder.

Originally committed as revision 19593 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/h263.h
libavcodec/mpegvideo_enc.c

index fcd821c..b89bf1b 100644 (file)
@@ -36,8 +36,6 @@
 #define CONFIG_ANY_H263_ENCODER (CONFIG_H263_ENCODER    || \
                                  CONFIG_H263P_ENCODER   || \
                                  CONFIG_FLV_ENCODER     || \
-                                 CONFIG_RV10_ENCODER    || \
-                                 CONFIG_RV20_ENCODER    || \
                                  CONFIG_MPEG4_ENCODER   || \
                                  CONFIG_MSMPEG4_ENCODER || \
                                  CONFIG_WMV_ENCODER)
index c72f412..d62420a 100644 (file)
@@ -1724,8 +1724,7 @@ static av_always_inline void encode_mb_internal(MpegEncContext *s, int motion_x,
     case CODEC_ID_FLV1:
     case CODEC_ID_RV10:
     case CODEC_ID_RV20:
-        if (CONFIG_H263_ENCODER || CONFIG_H263P_ENCODER ||
-            CONFIG_FLV_ENCODER  || CONFIG_RV10_ENCODER  || CONFIG_RV20_ENCODER)
+        if (CONFIG_H263_ENCODER || CONFIG_H263P_ENCODER || CONFIG_FLV_ENCODER)
             h263_encode_mb(s, s->block, motion_x, motion_y);
         break;
     case CODEC_ID_MJPEG: