diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-09-23 14:40:29 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-09-25 08:28:14 +0200 |
commit | 9b921a8272cfcf5168a03042a6d84091cd33ee7b (patch) | |
tree | 64bca16790a6cb2d5f5551be83f8be14ab4de2c0 | |
parent | 240ae356e9c12c9b56e58e9245a58f3716815d13 (diff) | |
download | ffmpeg-9b921a8272cfcf5168a03042a6d84091cd33ee7b.tar.gz |
avconv: use correct output stream index when checking max_frames
-rw-r--r-- | avconv.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2333,8 +2333,8 @@ static int transcode(OutputFile *output_files, } if (ost->frame_number >= ost->max_frames) { int j; - for (j = of->ost_index; j < of->ctx->nb_streams; j++) - output_streams[j].is_past_recording_time = 1; + for (j = 0; j < of->ctx->nb_streams; j++) + output_streams[of->ost_index + j].is_past_recording_time = 1; continue; } } |