diff --git a/trunk/src/app/srs_app_source.cpp b/trunk/src/app/srs_app_source.cpp index 0ff441b0df3..49a67dc82a0 100755 --- a/trunk/src/app/srs_app_source.cpp +++ b/trunk/src/app/srs_app_source.cpp @@ -634,8 +634,9 @@ int SrsGopCache::cache(SrsSharedPtrMessage* shared_msg) // got video, update the video count if acceptable if (msg->is_video()) { - // drop video when not h.264 - if (!SrsFlvCodec::video_is_h264(msg->payload, msg->size)) { + // drop video when not h.264 or h.265 + if (!SrsFlvCodec::video_is_h264(msg->payload, msg->size) && + !SrsFlvCodec::video_is_hevc(msg->payload, msg->size)) { srs_info("gop cache drop video for none h.264"); return ret; }