diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-12-07 23:35:21 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-12-08 21:21:33 +0100 |
commit | e21f8a07ca29c6c9328bf59a5ca14087c52c67c3 (patch) | |
tree | bee8fb62bfabc1df08430aaca27538fadcd138f4 /libavformat/libnut.c | |
parent | 6f7f2396049575fcf2054b4dafa19ca01381638e (diff) | |
download | ffmpeg-e21f8a07ca29c6c9328bf59a5ca14087c52c67c3.tar.gz |
libnut: Check nut_demuxer_init() return value.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/libnut.c')
-rw-r--r-- | libavformat/libnut.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/libnut.c b/libavformat/libnut.c index 9f64544d2a..be0328a954 100644 --- a/libavformat/libnut.c +++ b/libavformat/libnut.c @@ -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); |