aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vdpau_internal.h
diff options
context:
space:
mode:
authorRĂ©mi Denis-Courmont <remi@remlab.net>2014-10-04 16:55:06 +0300
committerAnton Khirnov <anton@khirnov.net>2014-10-06 06:18:56 +0000
commit502cde409ca5ee97ef70c2cdede88b9101746ff6 (patch)
tree5c8318d141d7d8d73b462f88369704f88bca3817 /libavcodec/vdpau_internal.h
parent89ac99ba5f2dc9f69ad3bc294753930eb0b3e4a4 (diff)
downloadffmpeg-502cde409ca5ee97ef70c2cdede88b9101746ff6.tar.gz
vdpau: force reinitialization when output resolution changes
This is necessary to recreate the decoder with the correct parameters, as not all codecs invoke get_format() in this case. Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavcodec/vdpau_internal.h')
-rw-r--r--libavcodec/vdpau_internal.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/vdpau_internal.h b/libavcodec/vdpau_internal.h
index 94fa9aae89..3e74d46963 100644
--- a/libavcodec/vdpau_internal.h
+++ b/libavcodec/vdpau_internal.h
@@ -74,6 +74,9 @@ typedef struct VDPAUContext {
* VDPAU decoder render callback
*/
VdpDecoderRender *render;
+
+ uint32_t width;
+ uint32_t height;
} VDPAUContext;
struct vdpau_picture_context {