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.
This commit is contained in:
Kacper Michajłow 2024-06-21 17:53:30 +02:00
parent 23ecfa9845
commit 4ec060f946
1 changed files with 2 additions and 0 deletions

View File

@ -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;