Commit e21f8a07 authored by Michael Niedermayer's avatar Michael Niedermayer

libnut: Check nut_demuxer_init() return value.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 6f7f2396
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment