Skip to content
Snippets Groups Projects
Commit 0e239529 authored by Luca Barbato's avatar Luca Barbato
Browse files

nut: Mark non-fatal errors as warnings

And make one more informative.
parent 62f72b40
No related branches found
No related tags found
No related merge requests found
...@@ -532,7 +532,9 @@ static int decode_info_header(NUTContext *nut) ...@@ -532,7 +532,9 @@ static int decode_info_header(NUTContext *nut)
} }
if (stream_id_plus1 > s->nb_streams) { 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; continue;
} }
...@@ -613,7 +615,7 @@ static int find_and_decode_index(NUTContext *nut) ...@@ -613,7 +615,7 @@ static int find_and_decode_index(NUTContext *nut)
avio_seek(bc, filesize - 12, SEEK_SET); avio_seek(bc, filesize - 12, SEEK_SET);
avio_seek(bc, filesize - avio_rb64(bc), SEEK_SET); avio_seek(bc, filesize - avio_rb64(bc), SEEK_SET);
if (avio_rb64(bc) != INDEX_STARTCODE) { 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; return ret;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment