Skip to content

Commit

Permalink
fix rtmp/http-flv start play NOT IDR frame
Browse files Browse the repository at this point in the history
  • Loading branch information
wnpllrzodiac committed Jan 23, 2018
1 parent 3b11cfa commit 36fa248
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions trunk/src/app/srs_app_source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 36fa248

Please sign in to comment.