Check if outError pointer is not null before assigning a new value.
This commit is contained in:
1 parent
97c1378a48
commit
c7e9a124f3
1 file changed
+3
@@ -733,9 +733,12 @@ static void logCallback(MP4LogLevel loglevel, const char *fmt, va_list ap) {
|
|||||||
if (fileImporter) {
|
if (fileImporter) {
|
||||||
track.muxer_helper->importer = fileImporter;
|
track.muxer_helper->importer = fileImporter;
|
||||||
} else {
|
} else {
|
||||||
|
if (outError) {
|
||||||
*outError = MP42Error(@"Missing sources.",
|
*outError = MP42Error(@"Missing sources.",
|
||||||
@"One or more sources files are missing.",
|
@"One or more sources files are missing.",
|
||||||
200);
|
200);
|
||||||
|
}
|
||||||
|
|
||||||
noErr = NO;
|
noErr = NO;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user