return the correct rocdec_status if DestroyDataBuffers fails (#137)

[ROCm/rocdecode commit: 9a78101d22]
Этот коммит содержится в:
Aryan Salmanpour
2023-12-13 10:57:14 -05:00
коммит произвёл GitHub
родитель 02e09dba20
Коммит 0652ec852c
+1 -1
Просмотреть файл
@@ -233,7 +233,7 @@ rocDecStatus VaapiVideoDecoder::SubmitDecode(RocdecPicParams *pPicParams) {
rocDecStatus rocdec_status = DestroyDataBuffers();
if (rocdec_status != ROCDEC_SUCCESS) {
ERR("Error: Failed to destroy VAAPI buffer");
return ROCDEC_SUCCESS;
return rocdec_status;
}
CHECK_VAAPI(vaCreateBuffer(va_display_, va_context_id_, VAPictureParameterBufferType, pic_params_size, 1, pic_params_ptr, &pic_params_buf_id_));
if (scaling_list_enabled) {