Browse code

Fix a crash in ffserver when streaming to WMP from a file. However, it still doesn't seem to work for me anyway.

Originally committed as revision 1391 to svn://svn.ffmpeg.org/ffmpeg/trunk

Philip Gladstone authored on 2003/01/04 05:00:49
Showing 1 changed files
... ...
@@ -995,6 +995,10 @@ static int modify_current_stream(HTTPContext *c, char *rates)
995 995
     FFStream *req = c->stream;
996 996
     int action_required = 0;
997 997
 
998
+    /* Not much we can do for a feed */
999
+    if (!req->feed)
1000
+        return 0;
1001
+
998 1002
     for (i = 0; i < req->nb_streams; i++) {
999 1003
         AVCodecContext *codec = &req->streams[i]->codec;
1000 1004