From c19e76ceb7310dbf68ee8c7ffdfd5cc431156092 Mon Sep 17 00:00:00 2001
From: Nathan Kurz <nate@verse.com>
Date: Wed, 29 Sep 2004 15:53:37 +0000
Subject: [PATCH] ffmpeg not selecting first available stream, patch by (Nathan
 Kurz <nate at verse dot com>)

Originally committed as revision 3538 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 ffmpeg.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ffmpeg.c b/ffmpeg.c
index fecb3147af4..bafab6a60b6 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1445,6 +1445,7 @@ static int av_encode(AVFormatContext **output_files,
                         ist->st->codec.codec_type == ost->st->codec.codec_type) {
                         ost->source_index = j;
                         found = 1;
+                        break;
                     }
                 }
                 
-- 
GitLab