mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix coredump bug: caused by publish stream that codec is unsupport, sush as G.711, H.263 (#2526)
This commit is contained in:
parent
29dea37dbb
commit
aad90c7f42
3 changed files with 26 additions and 4 deletions
|
@ -931,6 +931,12 @@ srs_error_t SrsOriginHub::on_audio(SrsSharedPtrMessage* shared_audio)
|
|||
if ((err = format->on_audio(msg)) != srs_success) {
|
||||
return srs_error_wrap(err, "format consume audio");
|
||||
}
|
||||
|
||||
// Ignore if no format->acodec, it means the codec is not parsed, or unsupport/unknown codec
|
||||
// such as G.711 codec
|
||||
if (!format->acodec) {
|
||||
return err;
|
||||
}
|
||||
|
||||
// cache the sequence header if aac
|
||||
// donot cache the sequence header to gop_cache, return here.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue