[FFmpeg-cvslog] avconv: fix exiting when max frames is reached.
Anton Khirnov
git at videolan.org
Wed Jun 6 01:20:55 CEST 2012
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Mon Jun 4 20:01:55 2012 +0200| [e58b75f7ff4733b0de17b2b91d1dac364627cb9d] | committer: Anton Khirnov
avconv: fix exiting when max frames is reached.
frame number should never be strictly larger than max frames, so the
if() was never triggered.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e58b75f7ff4733b0de17b2b91d1dac364627cb9d
---
avconv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/avconv.c b/avconv.c
index 3cbdfab..f01dad0 100644
--- a/avconv.c
+++ b/avconv.c
@@ -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;
More information about the ffmpeg-cvslog
mailing list