mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
st/vdpau: clear Cb&Cr with 0.5f
That makes the output black in case of decoding errors. Signed-off-by: Christian König <deathsimple@vodafone.de>
This commit is contained in:
parent
2f8351a5ac
commit
d37c3c6ebe
1 changed files with 5 additions and 2 deletions
|
|
@ -355,12 +355,15 @@ vlVdpVideoSurfaceClear(vlVdpSurface *vlsurf)
|
|||
|
||||
surfaces = vlsurf->video_buffer->get_surfaces(vlsurf->video_buffer);
|
||||
for (i = 0; i < VL_MAX_SURFACES; ++i) {
|
||||
union pipe_color_union black = {};
|
||||
union pipe_color_union c = {};
|
||||
|
||||
if (!surfaces[i])
|
||||
continue;
|
||||
|
||||
pipe->clear_render_target(pipe, surfaces[i], &black, 0, 0,
|
||||
if (i > !!vlsurf->templat.interlaced)
|
||||
c.f[0] = c.f[1] = c.f[2] = c.f[3] = 0.5f;
|
||||
|
||||
pipe->clear_render_target(pipe, surfaces[i], &c, 0, 0,
|
||||
surfaces[i]->width, surfaces[i]->height);
|
||||
}
|
||||
pipe->flush(pipe, NULL);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue