Refactor decoder interface to pass decode unit into VideoDecoderRenderer

This commit is contained in:
Cameron Gutman
2023-10-20 17:04:06 -05:00
parent f20d90791a
commit 2c76654841
3 changed files with 10 additions and 12 deletions
+2 -4
View File
@@ -166,8 +166,7 @@ int DrSubmitDecodeUnit(PDECODE_UNIT decodeUnit)
ret = [renderer submitDecodeBuffer:(unsigned char*)entry->data
length:entry->length
bufferType:entry->bufferType
frameType:decodeUnit->frameType
pts:decodeUnit->presentationTimeMs];
decodeUnit:decodeUnit];
if (ret != DR_OK) {
free(data);
return ret;
@@ -185,8 +184,7 @@ int DrSubmitDecodeUnit(PDECODE_UNIT decodeUnit)
return [renderer submitDecodeBuffer:data
length:offset
bufferType:BUFFER_TYPE_PICDATA
frameType:decodeUnit->frameType
pts:decodeUnit->presentationTimeMs];
decodeUnit:decodeUnit];
}
int ArInit(int audioConfiguration, POPUS_MULTISTREAM_CONFIGURATION opusConfig, void* context, int flags)