mirror of https://github.com/mpv-player/mpv
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:
parent
23ecfa9845
commit
4ec060f946
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue