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

michael subversion
Tue Mar 20 14:59:59 CET 2007


Author: michael
Date: Tue Mar 20 14:59:59 2007
New Revision: 8454

Modified:
   trunk/libavformat/utils.c

Log:
revert r8428, the check was not that useless
should fix constant pts=0 with broken demuxers


Modified: trunk/libavformat/utils.c
==============================================================================
--- trunk/libavformat/utils.c	(original)
+++ trunk/libavformat/utils.c	Tue Mar 20 14:59:59 2007
@@ -633,7 +633,7 @@ static void compute_pkt_fields(AVFormatC
             st->last_IP_pts= pkt->pts;
             /* cannot compute PTS if not present (we can compute it only
             by knowing the futur */
-        } else {
+        } else if(pkt->pts != AV_NOPTS_VALUE || pkt->dts != AV_NOPTS_VALUE || pkt->duration){
             if(pkt->pts != AV_NOPTS_VALUE && pkt->duration){
                 int64_t old_diff= FFABS(st->cur_dts - pkt->duration - pkt->pts);
                 int64_t new_diff= FFABS(st->cur_dts - pkt->pts);




More information about the ffmpeg-cvslog mailing list