1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

GB: Correct the range of HEVC keyframe error. v6.0.49 (#3570)

---------

Co-authored-by: Haibo Chen <495810242@qq.com>
This commit is contained in:
chundonglinlin 2023-06-12 16:45:40 +08:00 committed by winlin
parent 1d878c2daa
commit 74079871f6
3 changed files with 4 additions and 3 deletions

View file

@ -1946,9 +1946,9 @@ srs_error_t SrsGbMuxer::write_h265_ipb_frame(char* frame, int frame_size, uint32
SrsHevcNaluType nt = SrsHevcNaluTypeParse(frame[0]);
// F.3.29 intra random access point (IRAP) picture
// ITU-T-H.265-2021.pdf, page 28.
// ITU-T-H.265-2021.pdf, page 462.
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;
}

View file

@ -9,6 +9,6 @@
#define VERSION_MAJOR 6
#define VERSION_MINOR 0
#define VERSION_REVISION 48
#define VERSION_REVISION 49
#endif