From 502cde409ca5ee97ef70c2cdede88b9101746ff6 Mon Sep 17 00:00:00 2001 From: RĂ©mi Denis-Courmont Date: Sat, 4 Oct 2014 16:55:06 +0300 Subject: 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 --- libavcodec/vdpau_internal.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libavcodec/vdpau_internal.h') 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 { -- cgit v1.2.3