Commit 1242c57a authored by Thomas Guillem's avatar Thomas Guillem

avcodec: prioritise vaapi over vdpau

Favor VAAPI over VDPAU: VDPAU is deprecated and present on less systems than
VAAPI. Furthermore, the try and fail of VDPAU vout/va take much longer than the
VAAPI one (around twice the time, that is 100-200ms). VAAPI will only be used
for direct rendering by default, so VDPAU will still be used instead of VAAPI
with CPU copy.
parent b11a20de
......@@ -1564,10 +1564,10 @@ static enum PixelFormat ffmpeg_GetFormat( AVCodecContext *p_context,
#endif
AV_PIX_FMT_DXVA2_VLD,
#endif
AV_PIX_FMT_VAAPI_VLD,
#if (LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(52, 4, 0))
AV_PIX_FMT_VDPAU,
#endif
AV_PIX_FMT_VAAPI_VLD,
AV_PIX_FMT_NONE,
};
......
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