diff --git a/libdakara_check.c b/libdakara_check.c index d14c3e6..72221dc 100644 --- a/libdakara_check.c +++ b/libdakara_check.c @@ -31,8 +31,11 @@ static void dakara_check_avf(AVFormatContext *s, dakara_check_results *res) { int64_t duration = 0; if (s->nb_streams == 0) { // mpeg probably - if (avformat_find_stream_info(s, NULL) < 0) + if (avformat_find_stream_info(s, NULL) < 0) { perror("failed to find streams"); + res->report.errors.io_error = true; + return; + } } for (unsigned int ui = 0; ui < s->nb_streams; ui++) {