mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
for #299, refine the codec object name
This commit is contained in:
parent
d7458c4e72
commit
caf69f193d
29 changed files with 731 additions and 699 deletions
|
@ -184,7 +184,7 @@ int SrsForwarder::on_audio(SrsSharedPtrMessage* shared_audio)
|
|||
return ret;
|
||||
}
|
||||
|
||||
if (SrsFlvCodec::audio_is_sequence_header(msg->payload, msg->size)) {
|
||||
if (SrsFlvAudio::sh(msg->payload, msg->size)) {
|
||||
srs_freep(sh_audio);
|
||||
sh_audio = msg->copy();
|
||||
}
|
||||
|
@ -208,7 +208,7 @@ int SrsForwarder::on_video(SrsSharedPtrMessage* shared_video)
|
|||
return ret;
|
||||
}
|
||||
|
||||
if (SrsFlvCodec::video_is_sequence_header(msg->payload, msg->size)) {
|
||||
if (SrsFlvVideo::sh(msg->payload, msg->size)) {
|
||||
srs_freep(sh_video);
|
||||
sh_video = msg->copy();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue