Commit 1e66f3f6 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

avcodec: do not clobber the direct rendering flag

The direct rendering flag used to gated certain code paths from
hardware decoding. Nowadays, the flag is not checked when hardware
decoding is active, so there are no needs to clobber it anymore.

This allows using direct rendering when falling back from hardware
decoding to software decoding.
parent 7c65a4f8
......@@ -1160,10 +1160,6 @@ static enum PixelFormat ffmpeg_GetFormat( AVCodecContext *p_context,
if (va->description != NULL)
msg_Info(p_dec, "Using %s for hardware decoding", va->description);
/* FIXME this will disable direct rendering
* even if a new pixel format is renegotiated
*/
p_sys->b_direct_rendering = false;
p_sys->p_va = va;
p_context->draw_horiz_band = NULL;
return pi_fmt[i];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment