]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/vdpau.c
Merge remote-tracking branch 'qatar/master'
[ffmpeg] / libavcodec / vdpau.c
index b848174f90239b94557b5da2a2e2b4a6b1641a48..0eebb9cdc1033acc88ee16402f2e1319fbde34ce 100644 (file)
@@ -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));
+}
+
 /* @}*/