mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
This commit is contained in:
parent
6ddef894d9
commit
529b89a29e
2 changed files with 13 additions and 1 deletions
|
@ -910,6 +910,12 @@ srs_error_t SrsRtcFromRtmpBridger::on_video(SrsSharedPtrMessage* msg)
|
||||||
return srs_error_wrap(err, "format consume video");
|
return srs_error_wrap(err, "format consume video");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Ignore if no format->vcodec, it means the codec is not parsed, or unsupport/unknown codec
|
||||||
|
// such as H.263 codec
|
||||||
|
if (!format->vcodec) {
|
||||||
|
return err;
|
||||||
|
}
|
||||||
|
|
||||||
bool has_idr = false;
|
bool has_idr = false;
|
||||||
vector<SrsSample*> samples;
|
vector<SrsSample*> samples;
|
||||||
if ((err = filter(msg, format, has_idr, samples)) != srs_success) {
|
if ((err = filter(msg, format, has_idr, samples)) != srs_success) {
|
||||||
|
|
|
@ -1022,7 +1022,13 @@ srs_error_t SrsOriginHub::on_video(SrsSharedPtrMessage* shared_video, bool is_se
|
||||||
if ((err = format->on_video(msg)) != srs_success) {
|
if ((err = format->on_video(msg)) != srs_success) {
|
||||||
return srs_error_wrap(err, "format consume video");
|
return srs_error_wrap(err, "format consume video");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Ignore if no format->vcodec, it means the codec is not parsed, or unsupport/unknown codec
|
||||||
|
// such as H.263 codec
|
||||||
|
if (!format->vcodec) {
|
||||||
|
return err;
|
||||||
|
}
|
||||||
|
|
||||||
// cache the sequence header if h264
|
// cache the sequence header if h264
|
||||||
// donot cache the sequence header to gop_cache, return here.
|
// donot cache the sequence header to gop_cache, return here.
|
||||||
if (format->is_avc_sequence_header()) {
|
if (format->is_avc_sequence_header()) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue