diff mpeg12.c @ 8832:3eaabd9c4371 libavcodec

Remove redundant CONFIG_XVMC option, CONFIG_MPEG_XVMC_DECODER suffices.
author diego
date Sat, 14 Feb 2009 15:37:40 +0000
parents 9e7d7122a421
children 6ce8ebfc9d86
line wrap: on
line diff
--- a/mpeg12.c	Sat Feb 14 15:30:40 2009 +0000
+++ b/mpeg12.c	Sat Feb 14 15:37:40 2009 +0000
@@ -301,7 +301,7 @@
         }else
             memset(s->last_mv, 0, sizeof(s->last_mv)); /* reset mv prediction */
         s->mb_intra = 1;
-#if CONFIG_XVMC
+#if CONFIG_MPEG_XVMC_DECODER
         //if 1, we memcpy blocks in xvmcvideo
         if(s->avctx->xvmc_acceleration > 1){
             XVMC_pack_pblocks(s,-1);//inter are always full blocks
@@ -514,7 +514,7 @@
                 return -1;
             }
 
-#if CONFIG_XVMC
+#if CONFIG_MPEG_XVMC_DECODER
             //if 1, we memcpy blocks in xvmcvideo
             if(s->avctx->xvmc_acceleration > 1){
                 XVMC_pack_pblocks(s,cbp);
@@ -1648,7 +1648,7 @@
                 }
             }
     }
-#if CONFIG_XVMC
+#if CONFIG_MPEG_XVMC_DECODER
 // MPV_frame_start will call this function too,
 // but we need to call it on every field
     if(s->avctx->xvmc_acceleration)
@@ -1739,7 +1739,7 @@
     }
 
     for(;;) {
-#if CONFIG_XVMC
+#if CONFIG_MPEG_XVMC_DECODER
         //If 1, we memcpy blocks in xvmcvideo.
         if(s->avctx->xvmc_acceleration > 1)
             XVMC_init_block(s);//set s->block
@@ -1921,7 +1921,7 @@
     if (!s1->mpeg_enc_ctx_allocated || !s->current_picture_ptr)
         return 0;
 
-#if CONFIG_XVMC
+#if CONFIG_MPEG_XVMC_DECODER
     if(s->avctx->xvmc_acceleration)
         XVMC_field_end(s);
 #endif
@@ -2487,7 +2487,7 @@
     .long_name= NULL_IF_CONFIG_SMALL("MPEG-1 video"),
 };
 
-#if CONFIG_XVMC
+#if CONFIG_MPEG_XVMC_DECODER
 static av_cold int mpeg_mc_decode_init(AVCodecContext *avctx){
     Mpeg1Context *s;