diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2019-08-30 15:18:29 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-07-02 01:01:29 +0200 |
commit | 7e8ce331a0f19ac9bbf39085a41d580eb8244b9d (patch) | |
tree | 4c90c6095d878ac28154eae6cade7242ce2bb810 /libavcodec/flvenc.c | |
parent | 325498af97b2104070fbea974281a393a898672c (diff) | |
download | ffmpeg-7e8ce331a0f19ac9bbf39085a41d580eb8244b9d.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)
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/flvenc.c')
0 files changed, 0 insertions, 0 deletions