mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Fix warnings
This commit is contained in:
parent
9db2a04c3b
commit
b3825c4021
9 changed files with 64 additions and 42 deletions
|
@ -568,14 +568,14 @@ int SrsFormat::on_audio(int64_t timestamp, char* data, int size)
|
|||
return ret;
|
||||
}
|
||||
|
||||
// Parse by specified codec.
|
||||
buffer->skip(-1 * buffer->pos());
|
||||
|
||||
if (codec == SrsAudioCodecIdMP3) {
|
||||
return audio_mp3_demux(buffer, timestamp);
|
||||
} else if (codec == SrsAudioCodecIdAAC) {
|
||||
return audio_aac_demux(buffer, timestamp);
|
||||
} else {
|
||||
return ret;
|
||||
}
|
||||
|
||||
return audio_aac_demux(buffer, timestamp);
|
||||
}
|
||||
|
||||
int SrsFormat::on_video(int64_t timestamp, char* data, int size)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue