Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2015-10-28 16:30:30 +0300
committerHendrik Leppkes <h.leppkes@gmail.com>2017-08-04 20:18:08 +0300
commitc98c5176cee6f616d74c9c7acf10f55e88f9c6e9 (patch)
treee52a988c4312179233c26b6850d5af09ae651b45
parent528cfff9443838858ed09c1cf93c631f81ddae5d (diff)
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.
-rw-r--r--libavformat/asfdec_f.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/asfdec_f.c b/libavformat/asfdec_f.c
index be09a92bd1..d4b6f10582 100644
--- a/libavformat/asfdec_f.c
+++ b/libavformat/asfdec_f.c
@@ -1606,7 +1606,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 = s->internal->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 (pos != last_pos) {
av_log(s, AV_LOG_DEBUG, "pktnum:%d, pktct:%d pts: %"PRId64"\n",