diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-11-02 22:01:14 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-11-14 09:38:58 +0100 |
commit | 728c4658563dc82115ade0f1679679eddb7be5ff (patch) | |
tree | fe5f4aec0fab08090215dec4ebba6ae32449c885 /libavcodec/vdpau.c | |
parent | ca22d1dea2842fca0422dd1d2bd09e7eb2c8f118 (diff) | |
download | ffmpeg-728c4658563dc82115ade0f1679679eddb7be5ff.tar.gz |
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.c | 5 |
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)); +} + /* @}*/ |