]> git.sesse.net Git - ffmpeg/commit
avformat/mlvdec: Check for existence of AVIOContext before using it
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sun, 9 Aug 2020 23:32:42 +0000 (01:32 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 18 Aug 2020 12:18:18 +0000 (14:18 +0200)
commit6e0dd41fa3cdfd4b31d2c03c52e926231d7b2e73
treebad93bc852c0ca9fc1db36a214e91fa51c52419d
parent97d802914994b29eba97dc49e35e8ed60b5b8ae3
avformat/mlvdec: Check for existence of AVIOContext before using it

The mlv demuxer supports input split into multiple files; if invalid
data is encountered when parsing one of the subsequent files, that file
is closed. But at this point some index entries belonging to this file
might already have been added. In this case, the read_packet function
might try to use the AVIOContext (which is NULL) to read data which will
of course crash. This commit fixes this.

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