[FFmpeg-cvslog] r12134 - trunk/ffmpeg.c

michael subversion
Sun Feb 17 21:12:44 CET 2008


Author: michael
Date: Sun Feb 17 21:12:44 2008
New Revision: 12134

Log:
Set initial next_pts to unknown, this avoids the nonsense timestamp
discontinuity at the start. I hope this has no sideeffects, if it does
send a bugreport!
fixes issue137


Modified:
   trunk/ffmpeg.c

Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c	(original)
+++ trunk/ffmpeg.c	Sun Feb 17 21:12:44 2008
@@ -1826,10 +1826,7 @@ static int av_encode(AVFormatContext **o
         ist = ist_table[i];
         is = input_files[ist->file_index];
         ist->pts = 0;
-        ist->next_pts=0;
-        if(   input_files_ts_offset[ist->file_index] != -is->start_time
-           && !(is->start_time == AV_NOPTS_VALUE && input_files_ts_offset[ist->file_index]==0))
-            ist->next_pts= AV_NOPTS_VALUE;
+        ist->next_pts = AV_NOPTS_VALUE;
         ist->is_start = 1;
     }
 




More information about the ffmpeg-cvslog mailing list