Skip to content
Snippets Groups Projects
Commit c988b8d5 authored by Thomas Guillem's avatar Thomas Guillem
Browse files

avcodec: fix black screen with hdtv-fixed videos

In case of indirect rendering.

This fixes a regression from dfb76718

Fixes #20175
parent 10ebd491
No related branches found
No related tags found
No related merge requests found
......@@ -365,8 +365,8 @@ static int lavc_CopyPicture(decoder_t *dec, picture_t *pic, AVFrame *frame)
sys->p_context->pix_fmt, (name != NULL) ? name : "unknown");
return VLC_EGENERIC;
} else if (fourcc != pic->format.i_chroma
|| frame->width != (int) pic->format.i_visible_width
|| frame->height != (int) pic->format.i_visible_height)
|| frame->width > (int) pic->format.i_width
|| frame->height > (int) pic->format.i_height)
{
msg_Warn(dec, "dropping frame because the vout changed");
return VLC_EGENERIC;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment