projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c924ca7
)
Fill missing pts in during muxing when we know that they are equal to dts.
author
Michael Niedermayer
<michaelni@gmx.at>
Wed, 25 Jun 2008 18:31:48 +0000
(18:31 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Wed, 25 Jun 2008 18:31:48 +0000
(18:31 +0000)
Originally committed as revision 13970 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/utils.c
patch
|
blob
|
history
diff --git
a/libavformat/utils.c
b/libavformat/utils.c
index
5329ba5
..
055ff32
100644
(file)
--- a/
libavformat/utils.c
+++ b/
libavformat/utils.c
@@
-2445,6
+2445,9
@@
static int compute_pkt_fields2(AVStream *st, AVPacket *pkt){
}
}
+ if(pkt->pts == AV_NOPTS_VALUE && pkt->dts != AV_NOPTS_VALUE && delay==0)
+ pkt->pts= pkt->dts;
+
//XXX/FIXME this is a temporary hack until all encoders output pts
if((pkt->pts == 0 || pkt->pts == AV_NOPTS_VALUE) && pkt->dts == AV_NOPTS_VALUE && !delay){
pkt->dts=