Skip to content

Commit 71460d7

Browse files
committed
fixed #1876
1 parent 57f4ec3 commit 71460d7

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

Diff for: src/filters/isoffin_read.c

+7
Original file line numberDiff line numberDiff line change
@@ -1453,6 +1453,13 @@ static GF_Err isoffin_process(GF_Filter *filter)
14531453
gf_filter_pid_set_eos(ch->pid);
14541454
}
14551455
break;
1456+
} else if (ch->last_state==GF_ISOM_INVALID_FILE) {
1457+
if (!ch->eos_sent) {
1458+
ch->eos_sent = GF_TRUE;
1459+
read->eos_signaled = GF_TRUE;
1460+
gf_filter_pid_set_eos(ch->pid);
1461+
}
1462+
return ch->last_state;
14561463
} else {
14571464
read->force_fetch = GF_TRUE;
14581465
break;

Diff for: src/filters/isoffin_read_ch.c

+4
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,10 @@ void isor_reader_get_sample(ISOMChannel *ch)
479479
if (!ch->has_edit_list && ch->sample_num)
480480
ch->sample_num--;
481481
} else {
482+
if (ch->to_init && ch->sample_num) {
483+
GF_LOG(GF_LOG_ERROR, GF_LOG_CONTAINER, ("[IsoMedia] Failed to fetch initial sample %d for track %d\n"));
484+
ch->last_state = GF_ISOM_INVALID_FILE;
485+
}
482486
if (ch->sample_num >= gf_isom_get_sample_count(ch->owner->mov, ch->track)) {
483487
ch->last_state = GF_EOS;
484488
}

0 commit comments

Comments
 (0)