From c2ce254cab7b708569a360f3be055ed2b7c6696f Mon Sep 17 00:00:00 2001 From: Philip Gladstone Date: Sat, 21 Dec 2002 02:41:22 +0000 Subject: [PATCH] Make asf files work again -- the match against the URL was being done incorrectly. Originally committed as revision 1353 to svn://svn.ffmpeg.org/ffmpeg/trunk --- ffserver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffserver.c b/ffserver.c index 598d47f297..d9c8cf9a25 100644 --- a/ffserver.c +++ b/ffserver.c @@ -1185,7 +1185,7 @@ static int http_parse_request(HTTPContext *c) if (match_ext(filename, "asx")) { redir_type = REDIR_ASX; filename[strlen(filename)-1] = 'f'; - } else if (match_ext(filename, ".asf") && + } else if (match_ext(filename, "asf") && (!useragent || strncasecmp(useragent, "NSPlayer", 8) != 0)) { /* if this isn't WMP or lookalike, return the redirector file */ redir_type = REDIR_ASF;