* rocDecode/HEVC: Added error handling for the cases where there is no slice data in the decode payload. (#354)
[ROCm/rocdecode commit: 1ac4cf7f52]
Bu işleme şunda yer alıyor:
işlemeyi yapan:
GitHub
ebeveyn
e18f8a9d39
işleme
263f924405
@@ -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!"));
|
||||
|
||||
Yeni konuda referans
Bir kullanıcı engelle