mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-06-28 16:09:00 +02:00
Update ngx_rtmp_codec_module.c
Some encoders send "setDataFrame" instead of "@setDataFrame", which makes rtmp module can't show correct video frame rate in stat page.
This commit is contained in:
parent
7a35372e30
commit
cb36f9c23c
|
@ -943,7 +943,15 @@ ngx_rtmp_codec_postconfiguration(ngx_conf_t *cf)
|
||||||
}
|
}
|
||||||
ngx_str_set(&ch->name, "@setDataFrame");
|
ngx_str_set(&ch->name, "@setDataFrame");
|
||||||
ch->handler = ngx_rtmp_codec_meta_data;
|
ch->handler = ngx_rtmp_codec_meta_data;
|
||||||
|
|
||||||
|
// some encoders send setDataFrame instead of @setDataFrame
|
||||||
|
ch = ngx_array_push(&cmcf->amf);
|
||||||
|
if (ch == NULL) {
|
||||||
|
return NGX_ERROR;
|
||||||
|
}
|
||||||
|
ngx_str_set(&ch->name, "setDataFrame");
|
||||||
|
ch->handler = ngx_rtmp_codec_meta_data;
|
||||||
|
|
||||||
ch = ngx_array_push(&cmcf->amf);
|
ch = ngx_array_push(&cmcf->amf);
|
||||||
if (ch == NULL) {
|
if (ch == NULL) {
|
||||||
return NGX_ERROR;
|
return NGX_ERROR;
|
||||||
|
|
Loading…
Reference in a new issue