1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

Attempt to fix issue1728 and regression of issue203

Originally committed as revision 22011 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2010-02-23 23:41:11 +00:00
parent b8c93c483b
commit a15fdd7ce3

View File

@ -2305,7 +2305,7 @@ static int av_encode(AVFormatContext **output_files,
}
/* 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;
}