mirror of
https://github.com/ossrs/srs.git
synced 2025-02-12 11:21:52 +00:00
Refine url/urn box dumps
This commit is contained in:
parent
9cb2449175
commit
e8dbee1474
2 changed files with 9 additions and 7 deletions
|
@ -368,12 +368,8 @@ srs_error_t SrsMp4Box::discovery(SrsBuffer* buf, SrsMp4Box** ppbox)
|
|||
case SrsMp4BoxTypeSIDX: box = new SrsMp4SegmentIndexBox(); break;
|
||||
// Skip some unknown boxes.
|
||||
case SrsMp4BoxTypeFREE: case SrsMp4BoxTypeSKIP: case SrsMp4BoxTypePASP:
|
||||
case SrsMp4BoxTypeUUID:
|
||||
case SrsMp4BoxTypeUUID: default:
|
||||
box = new SrsMp4FreeSpaceBox(type); break;
|
||||
default:
|
||||
box = new SrsMp4FreeSpaceBox(type); break;
|
||||
//err = srs_error_new(ERROR_MP4_BOX_ILLEGAL_TYPE, "illegal box type=%d", type);
|
||||
//break;
|
||||
}
|
||||
|
||||
if (box) {
|
||||
|
@ -2588,6 +2584,11 @@ SrsMp4DataEntryBox::~SrsMp4DataEntryBox()
|
|||
{
|
||||
}
|
||||
|
||||
bool SrsMp4DataEntryBox::boxes_in_header()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
SrsMp4DataEntryUrlBox::SrsMp4DataEntryUrlBox()
|
||||
{
|
||||
type = SrsMp4BoxTypeURL;
|
||||
|
@ -2813,8 +2814,7 @@ stringstream& SrsMp4DataReferenceBox::dumps_detail(stringstream& ss, SrsMp4DumpC
|
|||
ss << ", " << entries.size() << " childs";
|
||||
if (!entries.empty()) {
|
||||
ss << "(+)" << endl;
|
||||
srs_mp4_padding(ss, dc.indent());
|
||||
srs_dumps_array(entries, ss, dc.indent(), srs_mp4_pfn_detail2, srs_mp4_delimiter_newline);
|
||||
srs_dumps_array(entries, ss, dc.indent(), srs_mp4_pfn_box2, srs_mp4_delimiter_newline);
|
||||
}
|
||||
return ss;
|
||||
}
|
||||
|
|
|
@ -1122,6 +1122,8 @@ public:
|
|||
public:
|
||||
SrsMp4DataEntryBox();
|
||||
virtual ~SrsMp4DataEntryBox();
|
||||
public:
|
||||
virtual bool boxes_in_header();
|
||||
};
|
||||
|
||||
// 8.7.2 Data Reference Box (url )
|
||||
|
|
Loading…
Reference in a new issue