mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
amf0 utest: null,undefined,object-eof to any
This commit is contained in:
parent
e40be6e89d
commit
bfe771bbba
9 changed files with 293 additions and 227 deletions
|
@ -645,12 +645,12 @@ int SrsSource::on_meta_data(SrsCommonMessage* msg, SrsOnMetaDataPacket* metadata
|
|||
SrsAmf0Any* prop = NULL;
|
||||
if ((prop = metadata->metadata->get_property("audiosamplerate")) != NULL) {
|
||||
if (prop->is_number()) {
|
||||
sample_rate = (int)(srs_amf0_convert<SrsAmf0Number>(prop)->value);
|
||||
sample_rate = (int)prop->to_number();
|
||||
}
|
||||
}
|
||||
if ((prop = metadata->metadata->get_property("framerate")) != NULL) {
|
||||
if (prop->is_number()) {
|
||||
frame_rate = (int)(srs_amf0_convert<SrsAmf0Number>(prop)->value);
|
||||
frame_rate = (int)prop->to_number();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue