Skip to content

Commit

Permalink
set io_error when we fail to find streams
Browse files Browse the repository at this point in the history
  • Loading branch information
odrling committed Aug 1, 2024
1 parent 25e4853 commit 06962a9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libdakara_check.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down

0 comments on commit 06962a9

Please sign in to comment.