diff options
author | Anton Khirnov <anton@khirnov.net> | 2012-06-04 20:01:55 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-06-05 09:35:08 +0200 |
commit | e58b75f7ff4733b0de17b2b91d1dac364627cb9d (patch) | |
tree | cdb4391b970f8496c4ef911ec800d1a9f44fa053 | |
parent | b56825c40ee1329b33aed34ff8a639fa18d263a0 (diff) | |
download | ffmpeg-e58b75f7ff4733b0de17b2b91d1dac364627cb9d.tar.gz |
avconv: fix exiting when max frames is reached.
frame number should never be strictly larger than max frames, so the
if() was never triggered.
-rw-r--r-- | avconv.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2871,7 +2871,7 @@ static int need_output(void) if (ost->is_past_recording_time || (os->pb && avio_tell(os->pb) >= of->limit_filesize)) continue; - if (ost->frame_number > ost->max_frames) { + if (ost->frame_number >= ost->max_frames) { int j; for (j = 0; j < of->ctx->nb_streams; j++) output_streams[of->ost_index + j]->is_past_recording_time = 1; |