mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-25 16:52:31 +00:00
avconv: fix exiting when max frames is reached.
frame number should never be strictly larger than max frames, so the if() was never triggered.
This commit is contained in:
parent
b56825c40e
commit
e58b75f7ff
2
avconv.c
2
avconv.c
@ -2871,7 +2871,7 @@ static int need_output(void)
|
|||||||
if (ost->is_past_recording_time ||
|
if (ost->is_past_recording_time ||
|
||||||
(os->pb && avio_tell(os->pb) >= of->limit_filesize))
|
(os->pb && avio_tell(os->pb) >= of->limit_filesize))
|
||||||
continue;
|
continue;
|
||||||
if (ost->frame_number > ost->max_frames) {
|
if (ost->frame_number >= ost->max_frames) {
|
||||||
int j;
|
int j;
|
||||||
for (j = 0; j < of->ctx->nb_streams; j++)
|
for (j = 0; j < of->ctx->nb_streams; j++)
|
||||||
output_streams[of->ost_index + j]->is_past_recording_time = 1;
|
output_streams[of->ost_index + j]->is_past_recording_time = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user