asfdec: don't subtract the pre-roll from index entries
Empiric analysis of a variety of samples has concluded that the index entries are written without the preroll.
This commit is contained in:
parent
cf682bf385
commit
c14fd90bb9
@ -1537,7 +1537,7 @@ static int asf_build_simple_index(AVFormatContext *s, int stream_index)
|
||||
int pktnum = avio_rl32(s->pb);
|
||||
int pktct = avio_rl16(s->pb);
|
||||
int64_t pos = ffformatcontext(s)->data_offset + s->packet_size * (int64_t)pktnum;
|
||||
int64_t index_pts = FFMAX(av_rescale(itime, i, 10000) - asf->hdr.preroll, 0);
|
||||
int64_t index_pts = FFMAX(av_rescale(itime, i, 10000), 0);
|
||||
|
||||
if (avio_feof(s->pb)) {
|
||||
ret = AVERROR_INVALIDDATA;
|
||||
|
Loading…
Reference in New Issue
Block a user