[FFmpeg-cvslog] avconv: use correct output stream index when checking max_frames

Anton Khirnov git at videolan.org
Mon Sep 26 00:01:18 CEST 2011


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Fri Sep 23 14:40:29 2011 +0200| [9b921a8272cfcf5168a03042a6d84091cd33ee7b] | committer: Anton Khirnov

avconv: use correct output stream index when checking max_frames

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9b921a8272cfcf5168a03042a6d84091cd33ee7b
---

 avconv.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/avconv.c b/avconv.c
index 43792e1..9e2fac7 100644
--- a/avconv.c
+++ b/avconv.c
@@ -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;
             }
         }



More information about the ffmpeg-cvslog mailing list