diff --git a/rpcs3/Emu/Cell/Modules/cellVdec.cpp b/rpcs3/Emu/Cell/Modules/cellVdec.cpp index 0237c78d27..c345b2b3b4 100644 --- a/rpcs3/Emu/Cell/Modules/cellVdec.cpp +++ b/rpcs3/Emu/Cell/Modules/cellVdec.cpp @@ -1243,12 +1243,12 @@ error_code cellVdecGetPicItem(u32 handle, vm::pptr picItem) info->auNum = 1; info->auPts[0].lower = static_cast(pts); info->auPts[0].upper = static_cast(pts >> 32); - info->auPts[1].lower = -1; - info->auPts[1].upper = -1; + info->auPts[1].lower = CELL_CODEC_PTS_INVALID; + info->auPts[1].upper = CELL_CODEC_PTS_INVALID; info->auDts[0].lower = static_cast(dts); info->auDts[0].upper = static_cast(dts >> 32); - info->auDts[1].lower = -1; - info->auDts[1].upper = -1; + info->auDts[1].lower = CELL_CODEC_DTS_INVALID; + info->auDts[1].upper = CELL_CODEC_DTS_INVALID; info->auUserData[0] = usrd; info->auUserData[1] = 0; info->status = CELL_OK; diff --git a/rpcs3/Emu/Cell/Modules/cellVdec.h b/rpcs3/Emu/Cell/Modules/cellVdec.h index 5f00f83ead..1aef31fcbf 100644 --- a/rpcs3/Emu/Cell/Modules/cellVdec.h +++ b/rpcs3/Emu/Cell/Modules/cellVdec.h @@ -71,6 +71,12 @@ enum CellVdecFrameRate : s32 CELL_VDEC_FRC_60 = 0x87, }; +enum +{ + CELL_CODEC_PTS_INVALID = 0xffffffff, + CELL_CODEC_DTS_INVALID = 0xffffffff, +}; + // Codec Type Information struct CellVdecType {