diff options
Diffstat (limited to 'video/out/opengl/hwdec_vda.c')
-rw-r--r-- | video/out/opengl/hwdec_vda.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/video/out/opengl/hwdec_vda.c b/video/out/opengl/hwdec_vda.c index 271c8b7941..e921df2f80 100644 --- a/video/out/opengl/hwdec_vda.c +++ b/video/out/opengl/hwdec_vda.c @@ -19,6 +19,8 @@ // Note: handles both VDA and VideoToolbox +#include <assert.h> + #include <IOSurface/IOSurface.h> #include <CoreVideo/CoreVideo.h> #include <OpenGL/OpenGL.h> @@ -174,7 +176,7 @@ static int create(struct gl_hwdec *hw) static int reinit(struct gl_hwdec *hw, struct mp_image_params *params) { - params->imgfmt = hw->driver->imgfmt; + assert(params->imgfmt == hw->driver->imgfmt); return 0; } |