mirror of https://git.ffmpeg.org/ffmpeg.git
fftools/ffmpeg: simplify ost_iter()
The inner loop never goes through more than 1 iteration, and so can be replaced by an if(). Found-by: Andreas Rheinhardt
This commit is contained in:
parent
07357e56a6
commit
1b076556c6
|
@ -612,7 +612,7 @@ static OutputStream *ost_iter(OutputStream *prev)
|
||||||
|
|
||||||
for (; of_idx < nb_output_files; of_idx++) {
|
for (; of_idx < nb_output_files; of_idx++) {
|
||||||
OutputFile *of = output_files[of_idx];
|
OutputFile *of = output_files[of_idx];
|
||||||
for (; ost_idx < of->nb_streams; ost_idx++)
|
if (ost_idx < of->nb_streams)
|
||||||
return of->streams[ost_idx];
|
return of->streams[ost_idx];
|
||||||
|
|
||||||
ost_idx = 0;
|
ost_idx = 0;
|
||||||
|
|
Loading…
Reference in New Issue