fix: error handling of nil decompressionSession
This commit is contained in:
1 parent
e9e6f1deb9
commit
b64ad64524
1 file changed
+4
@@ -847,6 +847,10 @@ int DrSubmitDecodeUnit(PDECODE_UNIT decodeUnit);
|
||||
[self setupDecompressionSession];
|
||||
}
|
||||
|
||||
if (_decompressionSession == nil) {
|
||||
return kVTInvalidSessionErr;
|
||||
}
|
||||
|
||||
OSStatus status = VTDecompressionSessionDecodeFrameWithOutputHandler(
|
||||
_decompressionSession,
|
||||
sampleBuffer,
|
||||
|
||||
Reference in new issue
Block a user