Add additional debug info if we couldn't find the matching pic in reference list and return error (#69)

* Add additional debug info if we couldn't find the matching pic in refrence list and return error

* Correct the debug info message

[ROCm/rocdecode commit: 5d5db9a017]
Этот коммит содержится в:
Aryan Salmanpour
2023-11-16 12:39:23 -05:00
коммит произвёл GitHub
родитель efc870b974
Коммит f62b0fa617
+4 -2
Просмотреть файл
@@ -446,7 +446,8 @@ int HEVCVideoParser::SendPicForDecode() {
}
}
if (j == 15) {
ERR("Could not find matching pic in ref_frames list.");
ERR("Could not find matching pic in ref_frames list. The slice type is P/B, and the idx from the ref_pic_list_0_ is: " + TOSTR(idx));
return PARSER_FAIL;
}
else {
slice_params_ptr->RefPicList[0][i] = j;
@@ -462,7 +463,8 @@ int HEVCVideoParser::SendPicForDecode() {
}
}
if (j == 15) {
ERR("Could not find matching pic in ref_frames list.");
ERR("Could not find matching pic in ref_frames list. The slice type is B, and the idx from the ref_pic_list_1_ is: " + TOSTR(idx));
return PARSER_FAIL;
}
else {
slice_params_ptr->RefPicList[1][i] = j;