aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2010-02-23 23:41:11 +0000
committerMichael Niedermayer <michaelni@gmx.at>2010-02-23 23:41:11 +0000
commita15fdd7ce31d3818d03c0bb38c3d24955374560e (patch)
treea0ce08dd83f518c4cef9bae4a335a4e337e62baa /ffmpeg.c
parentb8c93c483b4d507086a2efd1c1ba425c4fce4df3 (diff)
downloadffmpeg-a15fdd7ce31d3818d03c0bb38c3d24955374560e.tar.gz
Attempt to fix issue1728 and regression of issue203
Originally committed as revision 22011 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 9bc509d9f0..db3d053e5f 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -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;
}