Pass RFI flags to decoder

This commit is contained in:
Cameron Gutman
2018-08-25 13:36:54 -07:00
parent 9be9934b8c
commit b7cbec0b1c
3 changed files with 51 additions and 2 deletions
+3 -2
View File
@@ -38,8 +38,9 @@ bool SdlRenderer::needsTestFrame()
int SdlRenderer::getDecoderCapabilities()
{
// The FFmpeg CPU decoder can handle reference frame invalidation
return CAPABILITY_REFERENCE_FRAME_INVALIDATION_AVC | CAPABILITY_REFERENCE_FRAME_INVALIDATION_HEVC;
// The FFmpeg CPU decoder can handle reference frame invalidation,
// but only for H.264.
return CAPABILITY_REFERENCE_FRAME_INVALIDATION_AVC;
}
bool SdlRenderer::initialize(SDL_Window* window,