diff libmpcodecs/vd_ffmpeg.c @ 36351:8c3f3493301e

Fix compilation when VDPAU is disabled.
author reimar
date Sun, 15 Sep 2013 20:45:55 +0000
parents 20b8efbdfba4
children 46bc86e725af
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c	Sun Sep 15 11:34:54 2013 +0000
+++ b/libmpcodecs/vd_ffmpeg.c	Sun Sep 15 20:45:55 2013 +0000
@@ -539,11 +539,13 @@
         mp_msg(MSGT_DECVIDEO, MSGL_FATAL, "BUG in FFmpeg, draw_slice called for VDPAU!\n");
         return;
     }
+#if CONFIG_VDPAU
     if (IMGFMT_IS_VDPAU(mpi->imgfmt)) {
         struct vdpau_render_state *render = mpi->priv;
         vdpau_render_wrapper(s, src, &render->info, render->bitstream_buffers_used, render->bitstream_buffers);
         return;
     }
+#endif
     if (height < 0)
     {
         int i;