]> git.sesse.net Git - ffmpeg/commit
avformat/matroskadec: Use right number of tracks
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Fri, 30 Aug 2019 13:18:29 +0000 (15:18 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 15 Jun 2020 14:15:47 +0000 (16:15 +0200)
commit1ef30571a0a7150cb20c580bfc52af2a7101c20d
tree259fd7046abfb5b6c8b57b1a22814b96d88e3deb
parent3714d452b894821591a2fbafdd1b8ef15abe4be6
avformat/matroskadec: Use right number of tracks

When demuxing a Matroska/WebM file, streams are added for tracks and for
attachments, so that the array containing the former can be NULL even
when the corresponding AVFormatContext has streams. So check for there
to be tracks in the MatroskaDemuxContext instead of just streams in the
AVFormatContext before dereferencing the pointer to the tracks.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavformat/matroskadec.c