Check that the pointer isn't NULL.

This commit is contained in:
Kevin Backhouse 2023-03-11 23:29:48 +00:00
parent 1697417c27
commit 65259d8936
No known key found for this signature in database
GPG Key ID: 9DD01852EE40366E

View File

@ -812,7 +812,9 @@ void MatroskaVideo::decodeBooleanTags(const MatroskaTag* tag, const byte* buf) {
switch (tag->_id) {
case TrackType: // this tags is used internally only to deduce the type of track (video or audio)
internalMt = Exiv2::find(matroskaTrackType, key);
stream_ = internalMt->_id;
if (internalMt) {
stream_ = internalMt->_id;
}
internalMt = nullptr;
break;
case TrackUsed: