summaryrefslogtreecommitdiff
path: root/libavcodec/vdpau.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-11-14 13:08:36 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-11-14 13:08:36 +0100
commit31c09b7663acdcc64031d6f251a667ce812f590f (patch)
treea938859264028d21a5a23b55b6c4b37ebed9ab55 /libavcodec/vdpau.c
parent5f231d909f158e40d20281b88e7aecc2333057fe (diff)
parent728c4658563dc82115ade0f1679679eddb7be5ff (diff)
Merge commit '728c4658563dc82115ade0f1679679eddb7be5ff'
* commit '728c4658563dc82115ade0f1679679eddb7be5ff': vdpau: add a constructor for AVVDPAUContext. Conflicts: libavcodec/vdpau.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/vdpau.c')
-rw-r--r--libavcodec/vdpau.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libavcodec/vdpau.c b/libavcodec/vdpau.c
index b848174f90..0eebb9cdc1 100644
--- a/libavcodec/vdpau.c
+++ b/libavcodec/vdpau.c
@@ -40,7 +40,7 @@
AVVDPAUContext *av_alloc_vdpaucontext(void)
{
- return av_mallocz(sizeof(AVVDPAUContext));
+ return av_vdpau_alloc_context();
}
MAKE_ACCESSORS(AVVDPAUContext, vdpau_hwaccel, AVVDPAU_Render2, render2)
@@ -481,4 +481,9 @@ do { \
return AVERROR(EINVAL);
}
+AVVDPAUContext *av_vdpau_alloc_context(void)
+{
+ return av_mallocz(sizeof(AVVDPAUContext));
+}
+
/* @}*/