aboutsummaryrefslogtreecommitdiffstats
path: root/tools/python/convert_header.py
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2019-08-30 15:18:29 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-06-15 17:25:46 +0200
commit0260352d92228e56a999ea00a365ffef6cee20cc (patch)
treebacfe2cc9b1da5f846420170dd078468a4758709 /tools/python/convert_header.py
parenta2ab8babef6d6eabbd7ae5f5f36df9c069f7d94b (diff)
downloadffmpeg-0260352d92228e56a999ea00a365ffef6cee20cc.tar.gz
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> (cherry picked from commit 1ef30571a0a7150cb20c580bfc52af2a7101c20d)
Diffstat (limited to 'tools/python/convert_header.py')
0 files changed, 0 insertions, 0 deletions