[Ffmpeg-cvslog] r7234 - trunk/libavformat/utils.c

bcoudurier subversion
Wed Dec 6 16:46:12 CET 2006


Author: bcoudurier
Date: Wed Dec  6 16:46:12 2006
New Revision: 7234

Modified:
   trunk/libavformat/utils.c

Log:
do not truncate pts/dts if value is AV_NOPTS_VALUE, patch by Andy Parkins, andrew parkins at 360visiontechnology com

Modified: trunk/libavformat/utils.c
==============================================================================
--- trunk/libavformat/utils.c	(original)
+++ trunk/libavformat/utils.c	Wed Dec  6 16:46:12 2006
@@ -2288,8 +2288,12 @@
 //    if(pkt->dts < 0)
 //        pkt->dts= 0;  //this happens for low_delay=0 and b frames, FIXME, needs further invstigation about what we should do here
 
-    pkt->pts &= pts_mask;
-    pkt->dts &= pts_mask;
+    if( pkt->pts != AV_NOPTS_VALUE ) {
+        pkt->pts &= pts_mask;
+    }
+    if( pkt->dts != AV_NOPTS_VALUE ) {
+        pkt->dts &= pts_mask;
+    }
 }
 
 /**




More information about the ffmpeg-cvslog mailing list