mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
disable gop cache when not h.264. fix some warning.
This commit is contained in:
parent
c5dd334645
commit
d171a26758
7 changed files with 14 additions and 7 deletions
|
@ -392,6 +392,12 @@ int SrsGopCache::cache(SrsSharedPtrMessage* msg)
|
|||
srs_verbose("gop cache is disabled.");
|
||||
return ret;
|
||||
}
|
||||
|
||||
// disable gop cache when not h.264
|
||||
if (!SrsFlvCodec::video_is_h264(msg->payload, msg->size)) {
|
||||
srs_info("gop donot cache video for none h.264");
|
||||
return ret;
|
||||
}
|
||||
|
||||
// got video, update the video count if acceptable
|
||||
if (msg->header.is_video()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue