Browse Source

libnut: Check nut_demuxer_init() return value.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.9
Michael Niedermayer 13 years ago
parent
commit
e21f8a07ca
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavformat/libnut.c

+ 3
- 0
libavformat/libnut.c View File

@@ -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…
Cancel
Save