Commit 3f1710e7 authored by Ramiro Polla's avatar Ramiro Polla

indent

Originally committed as revision 24894 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 66842fe8
...@@ -2073,33 +2073,33 @@ static int transcode(AVFormatContext **output_files, ...@@ -2073,33 +2073,33 @@ static int transcode(AVFormatContext **output_files,
} else { } else {
int best_nb_frames=-1; int best_nb_frames=-1;
/* get corresponding input stream index : we select the first one with the right type */ /* get corresponding input stream index : we select the first one with the right type */
found = 0; found = 0;
for(j=0;j<nb_istreams;j++) { for(j=0;j<nb_istreams;j++) {
int skip=0; int skip=0;
ist = ist_table[j]; ist = ist_table[j];
if(opt_programid){ if(opt_programid){
int pi,si; int pi,si;
AVFormatContext *f= input_files[ ist->file_index ]; AVFormatContext *f= input_files[ ist->file_index ];
skip=1; skip=1;
for(pi=0; pi<f->nb_programs; pi++){ for(pi=0; pi<f->nb_programs; pi++){
AVProgram *p= f->programs[pi]; AVProgram *p= f->programs[pi];
if(p->id == opt_programid) if(p->id == opt_programid)
for(si=0; si<p->nb_stream_indexes; si++){ for(si=0; si<p->nb_stream_indexes; si++){
if(f->streams[ p->stream_index[si] ] == ist->st) if(f->streams[ p->stream_index[si] ] == ist->st)
skip=0; skip=0;
} }
}
} }
if (ist->discard && ist->st->discard != AVDISCARD_ALL && !skip && }
ist->st->codec->codec_type == ost->st->codec->codec_type) { if (ist->discard && ist->st->discard != AVDISCARD_ALL && !skip &&
if(best_nb_frames < ist->st->codec_info_nb_frames){ ist->st->codec->codec_type == ost->st->codec->codec_type) {
best_nb_frames= ist->st->codec_info_nb_frames; if(best_nb_frames < ist->st->codec_info_nb_frames){
ost->source_index = j; best_nb_frames= ist->st->codec_info_nb_frames;
found = 1; ost->source_index = j;
} found = 1;
} }
} }
}
if (!found) { if (!found) {
if(! opt_programid) { if(! opt_programid) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment