mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
For #299, write MPD file.
This commit is contained in:
parent
e754ab7073
commit
8ab727f3c5
7 changed files with 307 additions and 6 deletions
|
@ -652,13 +652,13 @@ int SrsFormat::on_aac_sequence_header(char* data, int size)
|
|||
bool SrsFormat::is_aac_sequence_header()
|
||||
{
|
||||
return acodec && acodec->id == SrsAudioCodecIdAAC
|
||||
&& audio && audio->aac_packet_type == SrsAudioAacFrameTraitSequenceHeader;
|
||||
&& audio && audio->aac_packet_type == SrsAudioAacFrameTraitSequenceHeader;
|
||||
}
|
||||
|
||||
bool SrsFormat::is_avc_sequence_header()
|
||||
{
|
||||
return vcodec && vcodec->id == SrsVideoCodecIdAVC
|
||||
&& video && video->avc_packet_type == SrsVideoAvcFrameTraitSequenceHeader;
|
||||
&& video && video->avc_packet_type == SrsVideoAvcFrameTraitSequenceHeader;
|
||||
}
|
||||
|
||||
int SrsFormat::video_avc_demux(SrsBuffer* stream, int64_t timestamp)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue