You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When I refer to the code parseH265Sps, I found the extracted value of max_sub_layers_minus1 should be 0 instead of 1. But the later parameters of width and height are correct.
The parameter was incorrectly read from NAL header which is "0x42 0x01".
Compare to the the parser of H264, I think it's missing to read the nalu header like CHK_STATUS(bitReaderReadBits(&bitReader, 16, &read));
Since the wrong value of sps_max_sub_layers_minus1, it read more 2 bytes of the nalu, leading to getting parameters width and height in the correct position.
Hi, can you please explain how this potential bug is affecting your use-case, and any errors if you are getting them, and are you using this library with KVS C or C++ Producer SDKs?
Since only the width and height of the video need to be obtained, there is no impact for the time being. I just want to remind you that the parsing process is wrong, although the width and height values obtained are correct.
Logging
sps: 42 01 01 01 60 00 00 00 00 00 00 00 00 00 96 a0 03 c0 80 10 e5 8d ae 49 32 6b 96 70 08 00 00 1f 48 00 03 0e 08 40 b1 b6 30 00
pos: 4, sps_video_parameter_set_id = 4
pos: 7, sps_max_sub_layers_minus1 = 1
Describe the bug
When I refer to the code parseH265Sps, I found the extracted value of max_sub_layers_minus1 should be 0 instead of 1. But the later parameters of width and height are correct.
The parameter was incorrectly read from NAL header which is "0x42 0x01".
Compare to the the parser of H264, I think it's missing to read the nalu header like
CHK_STATUS(bitReaderReadBits(&bitReader, 16, &read));
amazon-kinesis-video-streams-pic/src/mkvgen/src/SpsParser.c
Lines 218 to 223 in c98c2a2
Since the wrong value of sps_max_sub_layers_minus1, it read more 2 bytes of the nalu, leading to getting parameters width and height in the correct position.
amazon-kinesis-video-streams-pic/src/mkvgen/src/SpsParser.c
Lines 657 to 673 in c98c2a2
SDK version number
1.2.0
The text was updated successfully, but these errors were encountered: