Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7e581e36 authored by atinm's avatar atinm
Browse files

Check for NULL in addTracks()

Change-Id: If14da1dee2abd9fd86897cc658f66ae1eccf6d9f
parent 0d6e46d6
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -706,6 +706,7 @@ void MatroskaExtractor::addTracks() {

    for (size_t index = 0; index < tracks->GetTracksCount(); ++index) {
        const mkvparser::Track *track = tracks->GetTrackByIndex(index);
        if (!track) continue; // we can get back a NULL (it happens...)

        const char *const codecID = track->GetCodecId();
        LOGV("codec id = %s", codecID);