mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-09-10 01:30:21 +02:00
libnut: Check nut_demuxer_init() return value.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
6f7f239604
commit
e21f8a07ca
@ -207,6 +207,9 @@ static int nut_read_header(AVFormatContext * avf, AVFormatParameters * ap) {
|
||||
nut_stream_header_tt * s;
|
||||
int ret, i;
|
||||
|
||||
if(!nut)
|
||||
return -1;
|
||||
|
||||
if ((ret = nut_read_headers(nut, &s, NULL))) {
|
||||
av_log(avf, AV_LOG_ERROR, " NUT error: %s\n", nut_error(ret));
|
||||
nut_demuxer_uninit(nut);
|
||||
|
Loading…
Reference in New Issue
Block a user