]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Remove CONFIG_H264_ENCODER references
authormru <mru@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Wed, 4 Feb 2009 21:28:58 +0000 (21:28 +0000)
committermru <mru@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Wed, 4 Feb 2009 21:28:58 +0000 (21:28 +0000)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16996 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavcodec/h264.c

index 0e81f13fd07513a502691559fc070df808677beb..be0abd45a3b07dae1d9c6598ae9e3d7f28a12883 100644 (file)
@@ -2679,9 +2679,6 @@ static void hl_decode_mb(H264Context *h){
     const int mb_type= s->current_picture.mb_type[mb_xy];
     int is_complex = CONFIG_SMALL || h->is_complex || IS_INTRA_PCM(mb_type) || s->qscale == 0;
 
-    if(CONFIG_H264_ENCODER && !s->decode)
-        return;
-
     if (is_complex)
         hl_decode_mb_complex(h);
     else hl_decode_mb_simple(h);
@@ -6605,7 +6602,7 @@ static int decode_slice(struct AVCodecContext *avctx, void *arg){
     s->mb_skip_run= -1;
 
     h->is_complex = FRAME_MBAFF || s->picture_structure != PICT_FRAME || s->codec_id != CODEC_ID_H264 ||
-                    (CONFIG_GRAY && (s->flags&CODEC_FLAG_GRAY)) || (CONFIG_H264_ENCODER && s->encoding);
+                    (CONFIG_GRAY && (s->flags&CODEC_FLAG_GRAY));
 
     if( h->pps.cabac ) {
         int i;