adjusted AMF arg sizes to reasonable values

This commit is contained in:
Roman Arutyunyan 2012-03-30 19:10:01 +04:00
parent 18d8526793
commit cff6a4aca7
2 changed files with 10 additions and 9 deletions

5
TODO
View file

@ -1,5 +1,4 @@
- add HTTP callbacks for all cmd calls
- adjust AMF field sizes to reasonable values
- add support for flv file streaming
@ -13,3 +12,5 @@
- play only streams being published
- try recv_chain instead of recv in ngx_rtmp_handler

View file

@ -18,13 +18,13 @@
/* TODO: improve string sizes */
typedef struct {
u_char app[1024];
u_char flashver[1024];
u_char swf_url[1024];
u_char tc_url[1024];
u_char app[128];
u_char flashver[32];
u_char swf_url[256];
u_char tc_url[256];
double acodecs;
double vcodecs;
u_char page_url[1024];
u_char page_url[256];
} ngx_rtmp_connect_t;
@ -46,7 +46,7 @@ typedef struct {
typedef struct {
u_char name[1024];
u_char name[256];
} ngx_rtmp_fcpublish_t;
@ -56,7 +56,7 @@ typedef ngx_rtmp_fcpublish_t ngx_rtmp_fcunsubscribe_t;
typedef struct {
u_char name[1024];
u_char name[256];
double start;
double duration;
int reset;