aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/avidec.c
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2013-08-06 01:39:07 +0200
committerLuca Barbato <lu_zero@gentoo.org>2013-10-10 07:27:50 +0200
commit1cac9accbd1f9b8596122d0735e37b97a844c514 (patch)
tree52c8a948915edbf5d3157805f1ce12e19eb9c6cd /libavformat/avidec.c
parent1018a92219a38a812cf97761c6b3a5e66a400f4b (diff)
downloadffmpeg-1cac9accbd1f9b8596122d0735e37b97a844c514.tar.gz
avi: properly fail if the dv demuxer is missing
CC: libav-stable@libav.org
Diffstat (limited to 'libavformat/avidec.c')
-rw-r--r--libavformat/avidec.c3
1 files changed, 2 insertions, 1 deletions
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);