Skip to content

Commit

Permalink
Fixed flv header to match specification.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mdounin committed Nov 18, 2011
1 parent 777879c commit 5eef168
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/http/modules/ngx_http_flv_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 5eef168

Please sign in to comment.