Suggestion from @neheb

main
Kevin Backhouse 2 years ago
parent 65259d8936
commit e0ac920c87
No known key found for this signature in database
GPG Key ID: 9DD01852EE40366E

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

Loading…
Cancel
Save