diff options
| author | Maxim Dounin <mdounin@mdounin.ru> | 2011-11-18 14:41:01 +0000 |
|---|---|---|
| committer | Maxim Dounin <mdounin@mdounin.ru> | 2011-11-18 14:41:01 +0000 |
| commit | 5eef168a2222b26cdf6dfd2e7c11cb5423cebc74 (patch) | |
| tree | af292fbc30ae9e501bbacf5b25c3879876284ea5 /src | |
| parent | 777879c83227390ed7f4f6d2b9bcddfdd1307b88 (diff) | |
| download | nginx-5eef168a2222b26cdf6dfd2e7c11cb5423cebc74.tar.gz nginx-5eef168a2222b26cdf6dfd2e7c11cb5423cebc74.tar.bz2 | |
Fixed flv header to match specification.
Used "\x5" in 5th byte to claim presence of both audio and video. Used
previous tag size 0 in the beginning of the flv body (bytes 10 .. 13) as
required by specification (see http://www.adobe.com/devnet/f4v.html).
Patch by Piotr Sikora.
Diffstat (limited to 'src')
| -rw-r--r-- | src/http/modules/ngx_http_flv_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_flv_module.c b/src/http/modules/ngx_http_flv_module.c index 270d969db..30af834ab 100644 --- a/src/http/modules/ngx_http_flv_module.c +++ b/src/http/modules/ngx_http_flv_module.c @@ -23,7 +23,7 @@ static ngx_command_t ngx_http_flv_commands[] = { }; -static u_char ngx_flv_header[] = "FLV\x1\x1\0\0\0\x9\0\0\0\x9"; +static u_char ngx_flv_header[] = "FLV\x1\x5\0\0\0\x9\0\0\0\0"; static ngx_http_module_t ngx_http_flv_module_ctx = { |
