* rocDecode/HEVC: Added error handling for the cases where there is no slice data in the decode payload. (#354)

Этот коммит содержится в:
jeffqjiangNew authored and GitHub committed 2024-05-14 14:07:23 -04:00
1 родитель a086e4a3fa
Коммит 1ac4cf7f52
1 file changed
+5
+5
Просмотреть файл
@@ -99,6 +99,11 @@ rocDecStatus HevcVideoParser::ParseVideoData(RocdecSourceDataPacket *p_data) {
SendSeiMsgPayload();
}
// Error handling: if there is no slice data, return gracefully.
if (num_slices_ == 0) {
return ROCDEC_SUCCESS;
}
// Decode the picture
if (SendPicForDecode() != PARSER_OK) {
ERR(STR("Failed to decode!"));