diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2013-08-11 13:21:50 +0400 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2013-08-11 21:31:46 +0400 |
commit | af05edc658f3af284a1af39c00a36aeff0adaa0d (patch) | |
tree | ec0b9967a6235ac2e50e1132c99c506dada6bff9 /libavcodec/vdpau.c | |
parent | d87f9da53c93eca0cb0fe2f7c41bb56b461a8c93 (diff) |
vdpau: Add an allocation function for AVVDPAUContext.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'libavcodec/vdpau.c')
-rw-r--r-- | libavcodec/vdpau.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/vdpau.c b/libavcodec/vdpau.c index cf564a5982..63ea75527d 100644 --- a/libavcodec/vdpau.c +++ b/libavcodec/vdpau.c @@ -38,6 +38,11 @@ * @{ */ +AVVDPAUContext *av_alloc_vdpaucontext(void) +{ + return av_mallocz(sizeof(AVVDPAUContext)); +} + int ff_vdpau_common_start_frame(Picture *pic, av_unused const uint8_t *buffer, av_unused uint32_t size) |