Skip to content

Commit

Permalink
fixed #1876
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanlf committed Aug 30, 2021
1 parent 57f4ec3 commit 71460d7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/filters/isoffin_read.c
Original file line number Diff line number Diff line change
Expand Up @@ -1453,6 +1453,13 @@ static GF_Err isoffin_process(GF_Filter *filter)
gf_filter_pid_set_eos(ch->pid);
}
break;
} else if (ch->last_state==GF_ISOM_INVALID_FILE) {
if (!ch->eos_sent) {
ch->eos_sent = GF_TRUE;
read->eos_signaled = GF_TRUE;
gf_filter_pid_set_eos(ch->pid);
}
return ch->last_state;
} else {
read->force_fetch = GF_TRUE;
break;
Expand Down
4 changes: 4 additions & 0 deletions src/filters/isoffin_read_ch.c
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,10 @@ void isor_reader_get_sample(ISOMChannel *ch)
if (!ch->has_edit_list && ch->sample_num)
ch->sample_num--;
} else {
if (ch->to_init && ch->sample_num) {
GF_LOG(GF_LOG_ERROR, GF_LOG_CONTAINER, ("[IsoMedia] Failed to fetch initial sample %d for track %d\n"));
ch->last_state = GF_ISOM_INVALID_FILE;
}
if (ch->sample_num >= gf_isom_get_sample_count(ch->owner->mov, ch->track)) {
ch->last_state = GF_EOS;
}
Expand Down

0 comments on commit 71460d7

Please sign in to comment.