From 1cac9accbd1f9b8596122d0735e37b97a844c514 Mon Sep 17 00:00:00 2001 From: Luca Barbato Date: Tue, 6 Aug 2013 01:39:07 +0200 Subject: [PATCH] avi: properly fail if the dv demuxer is missing CC: libav-stable@libav.org --- libavformat/avidec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavformat/avidec.c b/libavformat/avidec.c index 3616281152..971b3f5e22 100644 --- a/libavformat/avidec.c +++ b/libavformat/avidec.c @@ -490,7 +490,8 @@ static int avi_read_header(AVFormatContext *s) avi->dv_demux = avpriv_dv_init_demux(s); if (!avi->dv_demux) goto fail; - } + } else + goto fail; s->streams[0]->priv_data = ast; avio_skip(pb, 3 * 4); ast->scale = avio_rl32(pb);