changeset 3502:322e2fb56ce8 libavformat

Fill missing pts in during muxing when we know that they are equal to dts.
author michael
date Wed, 25 Jun 2008 18:31:48 +0000
parents efcdb01aa0bf
children c1c3fb1711b9
files utils.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/utils.c	Wed Jun 25 18:15:04 2008 +0000
+++ b/utils.c	Wed Jun 25 18:31:48 2008 +0000
@@ -2445,6 +2445,9 @@
         }
     }
 
+    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=