]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/ituh263dec.c
Merge commit '31dc73e92a96f08d07650c0e7d31c0b9a1465d46'
[ffmpeg] / libavcodec / ituh263dec.c
index 4a07ac2af1ae7299f4e35b58989ee40f2c5fa5b6..bf9bd3488bcf0414e49a78c50413604b493bbb8c 100644 (file)
@@ -435,8 +435,7 @@ static int h263_decode_block(MpegEncContext * s, int16_t * block,
         }
     } else if (s->mb_intra) {
         /* DC coef */
-        if(s->codec_id == AV_CODEC_ID_RV10){
-#if CONFIG_RV10_DECODER
+        if (CONFIG_RV10_DECODER && s->codec_id == AV_CODEC_ID_RV10) {
           if (s->rv10_version == 3 && s->pict_type == AV_PICTURE_TYPE_I) {
             int component, diff;
             component = (n <= 3 ? 0 : n - 4 + 1);
@@ -456,7 +455,6 @@ static int h263_decode_block(MpegEncContext * s, int16_t * block,
                 if (level == 255)
                     level = 128;
           }
-#endif
         }else{
             level = get_bits(&s->gb, 8);
             if((level&0x7F) == 0){