* rocDecode/AVC: Fixed a bug in more RBSP data check function. (#263)

[ROCm/rocdecode commit: a48fc69caf]
이 커밋은 다음에 포함됨:
jeffqjiangNew 작성하고 GitHub가 2024-02-27 17:37:32 -05:00를 커밋함
1 부모 c1c9e06e7e
커밋 1c4e9bb5f5
1 파일이 변경됨
+1 -1
+1 -1
파일 보기
@@ -1480,7 +1480,7 @@ bool AvcVideoParser::MoreRbspData(uint8_t *p_stream, size_t stream_size_in_byte,
bool more_rbsp_bits = false;
uint8_t curr_byte = p_stream[bit_offset >> 3];
uint8_t next_bytes[3];
uint32_t next_byte_offset = (bit_offset + 7) >> 3;
uint32_t next_byte_offset = (bit_offset >> 3) + 1;
int bit_offset_in_byte = bit_offset % 8;
/// If the following bytes are not start code, we have more RBSP data. If we don't have enough bytes