diff options
author | Philip Gladstone <philipjsg@users.sourceforge.net> | 2003-01-03 20:00:49 +0000 |
---|---|---|
committer | Philip Gladstone <philipjsg@users.sourceforge.net> | 2003-01-03 20:00:49 +0000 |
commit | 001bcd29556b32c1afd686c03f6bdd65dd0e9a36 (patch) | |
tree | 305c69a720d25ac50f4a89ba3c182f6a19c1b3b4 | |
parent | f931ff7b9f535c122348b8569f2742cfbc480ccd (diff) | |
download | ffmpeg-001bcd29556b32c1afd686c03f6bdd65dd0e9a36.tar.gz |
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
-rw-r--r-- | ffserver.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ffserver.c b/ffserver.c index d9c8cf9a25..f6e3be5eb8 100644 --- a/ffserver.c +++ b/ffserver.c @@ -995,6 +995,10 @@ static int modify_current_stream(HTTPContext *c, char *rates) FFStream *req = c->stream; int action_required = 0; + /* Not much we can do for a feed */ + if (!req->feed) + return 0; + for (i = 0; i < req->nb_streams; i++) { AVCodecContext *codec = &req->streams[i]->codec; |