diff --git a/ffserver.c b/ffserver.c
index ed9bb7fc5ad8e35b798dfbaab665520f402970e0..bf2bef6e8e8da430be5bd9864199d1298f6eb00a 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -2206,7 +2206,7 @@ static int http_prepare_data(HTTPContext *c)
                     }
                     ost = ctx->streams[pkt.stream_index];
 
-                    c->fmt_ctx.pb->is_streamed = 1;
+                    ctx->pb->is_streamed = 1;
                     if (pkt.dts != AV_NOPTS_VALUE)
                         pkt.dts = av_rescale_q(pkt.dts, ist->time_base, ost->time_base);
                     if (pkt.pts != AV_NOPTS_VALUE)