summaryrefslogtreecommitdiff
path: root/libavcodec/vdpau.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-11-02 22:01:14 +0100
committerAnton Khirnov <anton@khirnov.net>2013-11-14 09:38:58 +0100
commit728c4658563dc82115ade0f1679679eddb7be5ff (patch)
treefe5f4aec0fab08090215dec4ebba6ae32449c885 /libavcodec/vdpau.c
parentca22d1dea2842fca0422dd1d2bd09e7eb2c8f118 (diff)
vdpau: add a constructor for AVVDPAUContext.
We will likely want to add new fields to it in the future, so this is needed to avoid breaking ABI.
Diffstat (limited to 'libavcodec/vdpau.c')
-rw-r--r--libavcodec/vdpau.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/vdpau.c b/libavcodec/vdpau.c
index cc0bcffc5f..d8a35eeb3b 100644
--- a/libavcodec/vdpau.c
+++ b/libavcodec/vdpau.c
@@ -133,4 +133,9 @@ do { \
return AVERROR(EINVAL);
}
+AVVDPAUContext *av_vdpau_alloc_context(void)
+{
+ return av_mallocz(sizeof(AVVDPAUContext));
+}
+
/* @}*/