summaryrefslogtreecommitdiffstats
path: root/video/decode/vdpau.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/decode/vdpau.c')
-rw-r--r--video/decode/vdpau.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/video/decode/vdpau.c b/video/decode/vdpau.c
index 92ea401750..43be1f47c1 100644
--- a/video/decode/vdpau.c
+++ b/video/decode/vdpau.c
@@ -157,11 +157,7 @@ static int init(struct lavc_ctx *ctx)
};
ctx->hwdec_priv = p;
-#if HAVE_AVCODEC_VDPAU_ALLOC_CONTEXT
p->context = av_vdpau_alloc_context();
-#else
- p->context = av_mallocz(sizeof(AVVDPAUContext));
-#endif
if (!p->context)
goto error;