OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8258354
)
set a more reasonable start_time if the first timestamps are AV_NOPTS_VALUE
author
Michael Niedermayer
<michaelni@gmx.at>
Sat, 4 Aug 2007 22:54:46 +0000
(22:54 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sat, 4 Aug 2007 22:54:46 +0000
(22:54 +0000)
Originally committed as revision 9918 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/utils.c
patch
|
blob
|
history
diff --git
a/libavformat/utils.c
b/libavformat/utils.c
index
c4ade6f
..
b5693b5
100644
(file)
--- a/
libavformat/utils.c
+++ b/
libavformat/utils.c
@@
-608,6
+608,9
@@
static void update_initial_timestamps(AVFormatContext *s, int stream_index, int6
if(pktl->pkt.dts != AV_NOPTS_VALUE)
pktl->pkt.dts += st->first_dts;
+
+ if(st->start_time == AV_NOPTS_VALUE && pktl->pkt.pts != AV_NOPTS_VALUE)
+ st->start_time= pktl->pkt.pts;
}
}