From 9b1eef3f6394a3fa5266e4ddf60f07898a369bed Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Mon, 3 Sep 2018 17:06:21 -0400 Subject: [PATCH] Pass AV_HWACCEL_FLAG_IGNORE_LEVEL for VDPAU per FFmpeg documentation recommendation --- app/streaming/video/ffmpeg-renderers/vdpau.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/streaming/video/ffmpeg-renderers/vdpau.cpp b/app/streaming/video/ffmpeg-renderers/vdpau.cpp index 7017f23f..7cd61e93 100644 --- a/app/streaming/video/ffmpeg-renderers/vdpau.cpp +++ b/app/streaming/video/ffmpeg-renderers/vdpau.cpp @@ -217,6 +217,9 @@ bool VDPAURenderer::prepareDecoderContext(AVCodecContext* context) // https://github.com/FFmpeg/FFmpeg/commit/64ecb78b7179cab2dbdf835463104679dbb7c895 context->hwaccel_flags |= AV_HWACCEL_FLAG_ALLOW_PROFILE_MISMATCH; + // This flag is recommended due to hardware underreporting supported levels + context->hwaccel_flags |= AV_HWACCEL_FLAG_IGNORE_LEVEL; + SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION, "Using VDPAU accelerated renderer");