mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine amf0 object size to total_size, elem count to count
This commit is contained in:
parent
59db1dd260
commit
9fd48d84c1
5 changed files with 52 additions and 61 deletions
|
@ -1212,7 +1212,7 @@ int SrsHls::on_meta_data(SrsAmf0Object* metadata)
|
|||
}
|
||||
|
||||
SrsAmf0Object* obj = metadata;
|
||||
if (obj->size() <= 0) {
|
||||
if (obj->count() <= 0) {
|
||||
srs_trace("no metadata persent, hls ignored it.");
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue