1
0
Fork 0

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:
Hendrik Leppkes 2015-10-28 14:30:30 +01:00
parent e577d9d056
commit 6d270c991f
Signed by: hendrik
GPG Key ID: 846079A4B0A7C1B5
1 changed files with 1 additions and 1 deletions

View File

@ -1536,7 +1536,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;