A value of zero for sample_count in trun box is not
prohibited by 14496-12 section 8.8.8.
4a9d32baca
disallowed this which led the demuxer to error out
when reading the header of valid files.
entries = UINT_MAX / sizeof(AVIndexEntry) - st->nb_index_entries;
av_log(c->fc, AV_LOG_ERROR, "Failed to add index entry\n");
}
- if (entries <= 0)
- return -1;
+ if (entries == 0)
+ return 0;
requested_size = (st->nb_index_entries + entries) * sizeof(AVIndexEntry);
new_entries = av_fast_realloc(st->index_entries,