diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-06-25 18:31:48 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-06-25 18:31:48 +0000 |
commit | 6e1aa0f38306ad8f5829bb323842a7f1a6b9d015 (patch) | |
tree | 17f329af12fb370b8e83f2f7c04ea1782c27162c /libavformat/utils.c | |
parent | c924ca78b60fe588364977be8a0f3834bda4fc11 (diff) | |
download | ffmpeg-streaming-6e1aa0f38306ad8f5829bb323842a7f1a6b9d015.zip ffmpeg-streaming-6e1aa0f38306ad8f5829bb323842a7f1a6b9d015.tar.gz |
Fill missing pts in during muxing when we know that they are equal to dts.
Originally committed as revision 13970 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 5329ba5..055ff32 100644 --- 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= |