Skip to content

Commit

Permalink
Suggestion from @neheb
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinbackhouse committed Mar 12, 2023
1 parent 65259d8 commit e0ac920
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/matroskavideo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -811,11 +811,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);
if (internalMt) {
stream_ = internalMt->_id;
if (auto f = Exiv2::find(matroskaTrackType, key)) {
stream_ = f->_id;
}
internalMt = nullptr;
break;
case TrackUsed:
internalMt = Exiv2::find(trackEnable, key);
Expand Down

0 comments on commit e0ac920

Please sign in to comment.