aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/avio_dir_cmd.c
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-07-02 10:15:08 +0200
commit6f0304b9d9d542a504b1b1e650b721fc541edacd (patch)
treedbe003c9a7f1b951064b367fddb766dcc8508770 /doc/examples/avio_dir_cmd.c
parenteb4bae9a1cd9ca4ed077b83449f70095a74db3a4 (diff)
downloadffmpeg-6f0304b9d9d542a504b1b1e650b721fc541edacd.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 'doc/examples/avio_dir_cmd.c')
0 files changed, 0 insertions, 0 deletions