Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v4.x support hevc(h.265) RTMP streaming #1721

Closed
wants to merge 17 commits into from
Prev Previous commit
Next Next commit
merge code
SHA-1: 9953fe5
* 1 fix hevc dvr cannot record problem
  • Loading branch information
maguoliang committed Apr 23, 2020
commit fe5baf674dadb5b588ad714e8349c0aeea3f7b72
3 changes: 2 additions & 1 deletion trunk/src/app/srs_app_dvr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,8 @@ srs_error_t SrsDvrSegmentPlan::update_duration(SrsSharedPtrMessage* msg)

char* payload = msg->payload;
int size = msg->size;
bool is_key_frame = SrsFlvVideo::h264(payload, size) && SrsFlvVideo::keyframe(payload, size) && !SrsFlvVideo::sh(payload, size);
bool is_key_frame = (SrsFlvVideo::h264(payload, size) || SrsFlvVideo::hevc(payload, size)) &&
SrsFlvVideo::keyframe(payload, size) && !SrsFlvVideo::sh(payload, size);
if (!is_key_frame) {
return err;
}
Expand Down