From 71a1d1116fd952f348d732c19ba7f4ebe041ce26 Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Mon, 11 Jul 2011 16:32:54 +0200 Subject: Replace some gotos that lead to single return statements by direct return. --- ffserver.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'ffserver.c') diff --git a/ffserver.c b/ffserver.c index 1dc8a17f2f..ca4b54f4d4 100644 --- a/ffserver.c +++ b/ffserver.c @@ -3508,7 +3508,7 @@ static int add_av_stream(FFStream *feed, AVStream *st) case AVMEDIA_TYPE_AUDIO: if (av1->channels == av->channels && av1->sample_rate == av->sample_rate) - goto found; + return i; break; case AVMEDIA_TYPE_VIDEO: if (av1->width == av->width && @@ -3516,7 +3516,7 @@ static int add_av_stream(FFStream *feed, AVStream *st) av1->time_base.den == av->time_base.den && av1->time_base.num == av->time_base.num && av1->gop_size == av->gop_size) - goto found; + return i; break; default: abort(); @@ -3528,8 +3528,6 @@ static int add_av_stream(FFStream *feed, AVStream *st) if (!fst) return -1; return feed->nb_streams - 1; - found: - return i; } static void remove_stream(FFStream *stream) -- cgit v1.2.3