From 4ec060f9465ad1b2151fdf36671681cd9900fc63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Fri, 21 Jun 2024 17:53:30 +0200 Subject: [PATCH] vo_tct: clear backbuffer on reconfig We were drawing garbage data after reconfig, if there is no video frame ready or with --force-window without video track. Found by OSS-Fuzz. --- video/out/vo_tct.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/video/out/vo_tct.c b/video/out/vo_tct.c index 127ca880bd..da492cca6f 100644 --- a/video/out/vo_tct.c +++ b/video/out/vo_tct.c @@ -243,6 +243,8 @@ static int reconfig(struct vo *vo, struct mp_image_params *params) if (!p->frame) return -1; + mp_image_clear(p->frame, 0, 0, p->frame->w, p->frame->h); + if (mp_sws_reinit(p->sws) < 0) return -1;