OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd5f925
)
avformat/utils: also fix wrapping of start_time in update_initial_timestamps()
author
Michael Niedermayer
<michaelni@gmx.at>
Wed, 4 Dec 2013 01:15:41 +0000
(
02:15
+0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Wed, 4 Dec 2013 01:18:04 +0000
(
02:18
+0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/utils.c
patch
|
blob
|
history
diff --git
a/libavformat/utils.c
b/libavformat/utils.c
index
8c29f08
..
6993846
100644
(file)
--- a/
libavformat/utils.c
+++ b/
libavformat/utils.c
@@
-975,6
+975,7
@@
static void update_initial_timestamps(AVFormatContext *s, int stream_index,
if (update_wrap_reference(s, st, stream_index) && st->pts_wrap_behavior == AV_PTS_WRAP_SUB_OFFSET) {
// correct first time stamps to negative values
st->first_dts = wrap_timestamp(st, st->first_dts);
+ st->start_time = wrap_timestamp(st, st->start_time);
st->cur_dts = wrap_timestamp(st, st->cur_dts);
pkt->dts = wrap_timestamp(st, pkt->dts);
pkt->pts = wrap_timestamp(st, pkt->pts);