diff options
author | Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com> | 2015-01-24 01:56:18 -0300 |
---|---|---|
committer | Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com> | 2015-01-24 02:22:09 -0300 |
commit | 2699a378167550d50f2b32587bdbc985a2a6bc54 (patch) | |
tree | e12095b25c5307e6d4e698ac242f69c78955c6a7 /ffserver.c | |
parent | 197acee767ddeb9ffeeacf5f9c3449375162f52a (diff) | |
download | ffmpeg-2699a378167550d50f2b32587bdbc985a2a6bc54.tar.gz |
ffserver: reflow find_stream_in_feed()
Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
Diffstat (limited to 'ffserver.c')
-rw-r--r-- | ffserver.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/ffserver.c b/ffserver.c index f3b2b19909..0946d0e392 100644 --- a/ffserver.c +++ b/ffserver.c @@ -1117,14 +1117,13 @@ static int find_stream_in_feed(FFServerStream *feed, AVCodecContext *codec, int best_bitrate = feed_codec->bit_rate; best = i; } - } else { - if (feed_codec->bit_rate < best_bitrate) { - best_bitrate = feed_codec->bit_rate; - best = i; - } + continue; + } + if (feed_codec->bit_rate < best_bitrate) { + best_bitrate = feed_codec->bit_rate; + best = i; } } - return best; } |