diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2013-08-06 01:39:07 +0200 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2013-10-10 07:27:50 +0200 |
commit | 1cac9accbd1f9b8596122d0735e37b97a844c514 (patch) | |
tree | 52c8a948915edbf5d3157805f1ce12e19eb9c6cd | |
parent | 1018a92219a38a812cf97761c6b3a5e66a400f4b (diff) | |
download | ffmpeg-1cac9accbd1f9b8596122d0735e37b97a844c514.tar.gz |
avi: properly fail if the dv demuxer is missing
CC: libav-stable@libav.org
-rw-r--r-- | libavformat/avidec.c | 3 |
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); |