Add a hack as a possible workaround for #372

This commit is contained in:
Cameron Gutman
2019-09-14 11:49:09 -07:00
parent 73197e4378
commit 409b262a4f
3 changed files with 38 additions and 5 deletions

View File

@@ -48,10 +48,15 @@ static VideoDecoderRenderer* renderer;
int DrDecoderSetup(int videoFormat, int width, int height, int redrawRate, void* context, int drFlags)
{
[renderer setupWithVideoFormat:videoFormat];
[renderer setupWithVideoFormat:videoFormat refreshRate:redrawRate];
return 0;
}
void DrCleanup(void)
{
[renderer cleanup];
}
int DrSubmitDecodeUnit(PDECODE_UNIT decodeUnit)
{
int offset = 0;
@@ -380,6 +385,7 @@ void ClConnectionStatusUpdate(int status)
LiInitializeVideoCallbacks(&_drCallbacks);
_drCallbacks.setup = DrDecoderSetup;
_drCallbacks.cleanup = DrCleanup;
_drCallbacks.submitDecodeUnit = DrSubmitDecodeUnit;
// RFI doesn't work properly with HEVC on iOS 11 with an iPhone SE (at least)