mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-19 09:02:26 +02:00
avi: properly fail if the dv demuxer is missing
CC: libav-stable@libav.org
This commit is contained in:
parent
1018a92219
commit
1cac9accbd
@ -490,7 +490,8 @@ static int avi_read_header(AVFormatContext *s)
|
|||||||
avi->dv_demux = avpriv_dv_init_demux(s);
|
avi->dv_demux = avpriv_dv_init_demux(s);
|
||||||
if (!avi->dv_demux)
|
if (!avi->dv_demux)
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
} else
|
||||||
|
goto fail;
|
||||||
s->streams[0]->priv_data = ast;
|
s->streams[0]->priv_data = ast;
|
||||||
avio_skip(pb, 3 * 4);
|
avio_skip(pb, 3 * 4);
|
||||||
ast->scale = avio_rl32(pb);
|
ast->scale = avio_rl32(pb);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user