Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhang Rui <bbcallen@gmail.com>2015-01-29 12:55:32 +0300
committerMichael Niedermayer <michaelni@gmx.at>2015-01-29 16:25:04 +0300
commit038f3a173f59c9fc3396aa38e7972661da7ca504 (patch)
tree733d6f35153b0b08ca41eaf969884b1d882629a4 /libavformat
parentd39fa69dfc64d96562d2d2707bf250493d53d34c (diff)
avformat/concatdec: avoid NULL dereference when failed to open file.
Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/concatdec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/concatdec.c b/libavformat/concatdec.c
index e109524de1..f07cfd7e8f 100644
--- a/libavformat/concatdec.c
+++ b/libavformat/concatdec.c
@@ -482,6 +482,9 @@ static int concat_read_packet(AVFormatContext *avf, AVPacket *pkt)
ConcatStream *cs;
AVStream *st;
+ if (!cat->avf)
+ return AVERROR(EIO);
+
while (1) {
ret = av_read_frame(cat->avf, pkt);
if (ret == AVERROR_EOF) {