summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorNico Sabbi <nicola.sabbi@poste.it>2007-10-27 18:50:08 +0000
committerNico Sabbi <nicola.sabbi@poste.it>2007-10-27 18:50:08 +0000
commita15bc651f9888634ff33d772ff6e682dc6b0095b (patch)
tree404cea30562bed10b12e029967886af6edc2ea58 /ffmpeg.c
parent50e143c4be35e05f90f6bd9c2fc71a37badaff48 (diff)
reindented after previous commit
Originally committed as revision 10867 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 347348f70b..e81d38af41 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1512,29 +1512,29 @@ static int av_encode(AVFormatContext **output_files,
found = 1;
}
} else {
- /* get corresponding input stream index : we select the first one with the right type */
- found = 0;
- for(j=0;j<nb_istreams;j++) {
- ist = ist_table[j];
- if (ist->discard &&
- ist->st->codec->codec_type == ost->st->codec->codec_type) {
- ost->source_index = j;
- found = 1;
- break;
- }
- }
- }
-
- if (!found) {
- if(! opt_programid) {
- /* try again and reuse existing stream */
+ /* get corresponding input stream index : we select the first one with the right type */
+ found = 0;
for(j=0;j<nb_istreams;j++) {
ist = ist_table[j];
- if (ist->st->codec->codec_type == ost->st->codec->codec_type) {
+ if (ist->discard &&
+ ist->st->codec->codec_type == ost->st->codec->codec_type) {
ost->source_index = j;
found = 1;
+ break;
}
}
+ }
+
+ if (!found) {
+ if(! opt_programid) {
+ /* try again and reuse existing stream */
+ for(j=0;j<nb_istreams;j++) {
+ ist = ist_table[j];
+ if (ist->st->codec->codec_type == ost->st->codec->codec_type) {
+ ost->source_index = j;
+ found = 1;
+ }
+ }
}
if (!found) {
fprintf(stderr, "Could not find input stream matching output stream #%d.%d\n",