projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dbd3dbb
)
lavf/mov: Fix timestamp rescale on sidx atom
author
Jun Li
<junli1026@gmail.com>
Thu, 9 May 2019 09:07:56 +0000
(
02:07
-0700)
committer
Jun Zhao
<barryjzhao@tencent.com>
Wed, 25 Sep 2019 22:55:44 +0000
(06:55 +0800)
Fix #5090
Fix the timestamp rescale issue, from sidx timebase to
stream's timebase.
libavformat/mov.c
patch
|
blob
|
history
diff --git
a/libavformat/mov.c
b/libavformat/mov.c
index
1533c35
..
8e916a2
100644
(file)
--- a/
libavformat/mov.c
+++ b/
libavformat/mov.c
@@
-5020,7
+5020,7
@@
static int mov_read_sidx(MOVContext *c, AVIOContext *pb, MOVAtom atom)
return AVERROR_PATCHWELCOME;
}
avio_rb32(pb); // sap_flags
- timestamp = av_rescale_q(pts,
st->time_base, timescal
e);
+ timestamp = av_rescale_q(pts,
timescale, st->time_bas
e);
index = update_frag_index(c, offset);
frag_stream_info = get_frag_stream_info(&c->frag_index, index, track_id);