12l: Fix compilation with --disable-vdpau.
authorCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>
Fri, 16 Jan 2009 02:50:20 +0000 (02:50 +0000)
committerCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>
Fri, 16 Jan 2009 02:50:20 +0000 (02:50 +0000)
Originally committed as revision 16630 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/mpeg12.c

index 9f98219..8d97103 100644 (file)
@@ -2313,7 +2313,7 @@ static int decode_chunks(AVCodecContext *avctx,
                         s2->error_count += s2->thread_context[i]->error_count;
                 }
 
-                if (avctx->codec->capabilities&CODEC_CAP_HWACCEL_VDPAU)
+                if (CONFIG_MPEG_VDPAU_DECODER && avctx->codec->capabilities&CODEC_CAP_HWACCEL_VDPAU)
                     ff_vdpau_mpeg_picture_complete(s2, buf, buf_size, s->slice_count);
 
                 if (slice_end(avctx, picture)) {