Skip to content

Commit

Permalink
GB: Correct the range of keyframe for compile warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
chundonglinlin committed Jun 5, 2023
1 parent 27f9db9 commit 447061d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trunk/src/app/srs_app_gb28181.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1948,7 +1948,7 @@ srs_error_t SrsGbMuxer::write_h265_ipb_frame(char* frame, int frame_size, uint32
// F.3.29 intra random access point (IRAP) picture
// ITU-T-H.265-2021.pdf, page 28.
SrsVideoAvcFrameType frame_type = SrsVideoAvcFrameTypeInterFrame;
if (nt >= SrsHevcNaluType_CODED_SLICE_BLA || nt <= SrsHevcNaluType_RESERVED_23) {
if (nt >= SrsHevcNaluType_CODED_SLICE_BLA && nt <= SrsHevcNaluType_RESERVED_23) {
frame_type = SrsVideoAvcFrameTypeKeyFrame;
}

Expand Down

0 comments on commit 447061d

Please sign in to comment.