[FFmpeg-cvslog] r13970 - trunk/libavformat/utils.c
michael
subversion
Wed Jun 25 20:31:48 CEST 2008
Author: michael
Date: Wed Jun 25 20:31:48 2008
New Revision: 13970
Log:
Fill missing pts in during muxing when we know that they are equal to dts.
Modified:
trunk/libavformat/utils.c
Modified: trunk/libavformat/utils.c
==============================================================================
--- trunk/libavformat/utils.c (original)
+++ trunk/libavformat/utils.c Wed Jun 25 20:31:48 2008
@@ -2445,6 +2445,9 @@ static int compute_pkt_fields2(AVStream
}
}
+ 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=
More information about the ffmpeg-cvslog
mailing list