comparison src/http/modules/ngx_http_flv_module.c @ 4297:2f8e9469b436

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.
author Maxim Dounin <mdounin@mdounin.ru>
date Fri, 18 Nov 2011 14:41:01 +0000
parents 84905c7b2aa7
children d620f497c50f
comparison
equal deleted inserted replaced
4296:783fd9c38d98 4297:2f8e9469b436
21 21
22 ngx_null_command 22 ngx_null_command
23 }; 23 };
24 24
25 25
26 static u_char ngx_flv_header[] = "FLV\x1\x1\0\0\0\x9\0\0\0\x9"; 26 static u_char ngx_flv_header[] = "FLV\x1\x5\0\0\0\x9\0\0\0\0";
27 27
28 28
29 static ngx_http_module_t ngx_http_flv_module_ctx = { 29 static ngx_http_module_t ngx_http_flv_module_ctx = {
30 NULL, /* preconfiguration */ 30 NULL, /* preconfiguration */
31 NULL, /* postconfiguration */ 31 NULL, /* postconfiguration */