[MPlayer-cvslog] r37318 - trunk/libmpcodecs/vd_ffmpeg.c

reimar subversion at mplayerhq.hu
Sun Nov 2 09:43:59 CET 2014


Author: reimar
Date: Sun Nov  2 09:43:58 2014
New Revision: 37318

Log:
vd_ffmpeg: Fix compilation without VDPAU.

Based on patch by Stephen Sheldon [sfsheldo gmail].

Modified:
   trunk/libmpcodecs/vd_ffmpeg.c

Modified: trunk/libmpcodecs/vd_ffmpeg.c
==============================================================================
--- trunk/libmpcodecs/vd_ffmpeg.c	Sun Nov  2 09:43:57 2014	(r37317)
+++ trunk/libmpcodecs/vd_ffmpeg.c	Sun Nov  2 09:43:58 2014	(r37318)
@@ -292,6 +292,7 @@ static void set_format_params(struct AVC
         return;
     ctx->use_hwaccel = fmt == AV_PIX_FMT_VDPAU;
     imgfmt = pixfmt2imgfmt2(fmt, avctx->codec_id);
+#if CONFIG_VDPAU
     if (!ctx->use_hwaccel) {
         av_freep(&avctx->hwaccel_context);
     } else {
@@ -300,6 +301,7 @@ static void set_format_params(struct AVC
             avctx->hwaccel_context = vdpc = av_alloc_vdpaucontext();
         vdpc->render2 = vdpau_render_wrapper;
     }
+#endif
     if (IMGFMT_IS_HWACCEL(imgfmt)) {
         ctx->do_dr1    = 1;
         ctx->nonref_dr = 0;


More information about the MPlayer-cvslog mailing list