Add reference frame invalidation for the software decoder

This commit is contained in:
Cameron Gutman
2018-08-25 12:38:04 -07:00
parent 55f0e1e1d5
commit 9be9934b8c
14 changed files with 46 additions and 0 deletions
@@ -36,6 +36,12 @@ bool SdlRenderer::needsTestFrame()
return false;
}
int SdlRenderer::getDecoderCapabilities()
{
// The FFmpeg CPU decoder can handle reference frame invalidation
return CAPABILITY_REFERENCE_FRAME_INVALIDATION_AVC | CAPABILITY_REFERENCE_FRAME_INVALIDATION_HEVC;
}
bool SdlRenderer::initialize(SDL_Window* window,
int,
int width,