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

michael subversion
Wed Feb 24 00:41:11 CET 2010


Author: michael
Date: Wed Feb 24 00:41:11 2010
New Revision: 22011

Log:
Attempt to fix issue1728 and regression of issue203

Modified:
   trunk/ffmpeg.c

Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c	Tue Feb 23 23:06:36 2010	(r22010)
+++ trunk/ffmpeg.c	Wed Feb 24 00:41:11 2010	(r22011)
@@ -2305,7 +2305,7 @@ static int av_encode(AVFormatContext **o
         }
 
         /* finish if recording time exhausted */
-        if (av_compare_ts(pkt.pts, ist->st->time_base, recording_time, (AVRational){1, 1000000}) >= 0) {
+        if (av_compare_ts(pkt.pts, ist->st->time_base, recording_time + start_time, (AVRational){1, 1000000}) >= 0) {
             ist->is_past_recording_time = 1;
             goto discard_packet;
         }



More information about the ffmpeg-cvslog mailing list