diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2015-11-24 01:25:04 +0100 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2015-11-25 09:01:25 +0100 |
commit | 0e2395293bff089536b97131b32fea8b58bca0ba (patch) | |
tree | 2dadcc65b21c7accbdbc00cebdaa35712cd78695 /libavformat | |
parent | 62f72b40c0b0d2cd6a2b81977287fa01d9f4ca6d (diff) | |
download | ffmpeg-0e2395293bff089536b97131b32fea8b58bca0ba.tar.gz |
nut: Mark non-fatal errors as warnings
And make one more informative.
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/nutdec.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c index e560a7e8ee..17ae522533 100644 --- a/libavformat/nutdec.c +++ b/libavformat/nutdec.c @@ -532,7 +532,9 @@ static int decode_info_header(NUTContext *nut) } if (stream_id_plus1 > s->nb_streams) { - av_log(s, AV_LOG_ERROR, "invalid stream id for info packet\n"); + av_log(s, AV_LOG_WARNING, + "invalid stream id %d for info packet\n", + stream_id_plus1); continue; } @@ -613,7 +615,7 @@ static int find_and_decode_index(NUTContext *nut) avio_seek(bc, filesize - 12, SEEK_SET); avio_seek(bc, filesize - avio_rb64(bc), SEEK_SET); if (avio_rb64(bc) != INDEX_STARTCODE) { - av_log(s, AV_LOG_ERROR, "no index at the end\n"); + av_log(s, AV_LOG_WARNING, "no index at the end\n"); return ret; } |