[FFmpeg-cvslog] Fix compilation with --disable-hwaccel=mpeg1_xvmc, mpeg2_xvmc

Carl Eugen Hoyos git at videolan.org
Mon Jan 20 20:06:04 CET 2014


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Mon Jan 20 11:20:46 2014 +0100| [c892621577b3ff1d34215b4b41899514658e0926] | committer: Carl Eugen Hoyos

Fix compilation with --disable-hwaccel=mpeg1_xvmc,mpeg2_xvmc

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c892621577b3ff1d34215b4b41899514658e0926
---

 libavcodec/mpeg12dec.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavcodec/mpeg12dec.c b/libavcodec/mpeg12dec.c
index de6b2b6..08e6bff 100644
--- a/libavcodec/mpeg12dec.c
+++ b/libavcodec/mpeg12dec.c
@@ -770,7 +770,7 @@ static int mpeg_decode_mb(MpegEncContext *s, int16_t block[12][64])
             memset(s->last_mv, 0, sizeof(s->last_mv)); /* reset mv prediction */
         s->mb_intra = 1;
         // if 1, we memcpy blocks in xvmcvideo
-        if (CONFIG_XVMC && s->pack_pblocks) {
+        if ((CONFIG_MPEG1_XVMC_HWACCEL || CONFIG_MPEG2_XVMC_HWACCEL) && s->pack_pblocks) {
             ff_xvmc_pack_pblocks(s, -1); // inter are always full blocks
         }
 
@@ -986,7 +986,7 @@ static int mpeg_decode_mb(MpegEncContext *s, int16_t block[12][64])
             }
 
             //if 1, we memcpy blocks in xvmcvideo
-            if (CONFIG_XVMC && s->pack_pblocks) {
+            if ((CONFIG_MPEG1_XVMC_HWACCEL || CONFIG_MPEG2_XVMC_HWACCEL) && s->pack_pblocks) {
                 ff_xvmc_pack_pblocks(s, cbp);
             }
 
@@ -1700,7 +1700,7 @@ static int mpeg_decode_slice(MpegEncContext *s, int mb_y,
 
     for (;;) {
         // If 1, we memcpy blocks in xvmcvideo.
-        if (CONFIG_XVMC && s->pack_pblocks)
+        if ((CONFIG_MPEG1_XVMC_HWACCEL || CONFIG_MPEG2_XVMC_HWACCEL) && s->pack_pblocks)
             ff_xvmc_init_block(s); // set s->block
 
         if (mpeg_decode_mb(s, s->block) < 0)



More information about the ffmpeg-cvslog mailing list