Fix a cast on arm64

This commit is contained in:
Damiano Galassi committed 2020-07-10 13:06:08 +02:00
1 parent 1ba7db25d0
commit 6cbd1ed712
5 files changed
+24 -10

No files matched your search

+1 -1
View File
@@ -1129,7 +1129,7 @@ MP42_OBJC_DIRECT_MEMBERS
// Get CMBlockBufferRef to extract the actual data later
CMBlockBufferRef buffer = CMSampleBufferGetDataBuffer(sampleBuffer);
size_t bufferSize = CMBlockBufferGetDataLength(buffer);
size_t bufferSize = buffer ? CMBlockBufferGetDataLength(buffer) : 0;
// We have only a sample
// or the format is PCM, if so send only a single buffer to improve performance