Add a log message when GetPictureInfo has mismatching sizes of pictures.

This commit is contained in:
Hasster 2025-03-06 20:32:10 +03:00
parent f1fddbc829
commit 79cd5e69a2

View File

@ -163,7 +163,7 @@ s32 PS4_SYSV_ABI sceVideodec2GetPictureInfo(const OrbisVideodec2OutputInfo* outp
OrbisVideodec2AvcPictureInfo* picInfo =
static_cast<OrbisVideodec2AvcPictureInfo*>(p1stPictureInfoOut);
if (picInfo->thisSize != sizeof(OrbisVideodec2AvcPictureInfo)) {
LOG_CRITICAL(Lib_Vdec2, "GetPictureInfo mismatching sizes, first = {}, second = {}",
LOG_CRITICAL(Lib_Vdec2, "Mismatching sizes, first = {}, second = {}",
picInfo->thisSize, sizeof(OrbisVideodec2AvcPictureInfo));
return ORBIS_VIDEODEC2_ERROR_STRUCT_SIZE;
}