diff --git a/ffserver.c b/ffserver.c
index ef93e5ce01fab17369f907afa497d39d61212773..8fcaba9968cea8f31bec0418a74d5b7f15f92eda 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -2158,10 +2158,11 @@ static int http_prepare_data(HTTPContext *c)
                         }
                     }
                 } else {
-                send_it:
                     AVCodecContext *codec;
-                    AVStream *ist = c->fmt_in->streams[source_index];
-                    AVStream *ost = ctx->streams[pkt.stream_index];
+                    AVStream *ist, *ost;
+                send_it:
+                    ist = c->fmt_in->streams[source_index];
+                    ost = ctx->streams[pkt.stream_index];
                     /* specific handling for RTP: we use several
                        output stream (one for each RTP
                        connection). XXX: need more abstract handling */