[FFmpeg-cvslog] r10867 - trunk/ffmpeg.c

nicodvb subversion
Sat Oct 27 20:50:09 CEST 2007


Author: nicodvb
Date: Sat Oct 27 20:50:08 2007
New Revision: 10867

Log:
reindented after previous commit

Modified:
   trunk/ffmpeg.c

Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c	(original)
+++ trunk/ffmpeg.c	Sat Oct 27 20:50:08 2007
@@ -1512,29 +1512,29 @@ static int av_encode(AVFormatContext **o
                         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",




More information about the ffmpeg-cvslog mailing list