mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-10-02 14:19:22 +00:00
Update cellVdecSetFrameRate error checking
This commit is contained in:
parent
74ad525566
commit
9084209cfc
1 changed files with 3 additions and 3 deletions
|
@ -931,13 +931,13 @@ error_code cellVdecSetFrameRate(u32 handle, CellVdecFrameRate frc)
|
||||||
|
|
||||||
const auto vdec = idm::get<vdec_context>(handle);
|
const auto vdec = idm::get<vdec_context>(handle);
|
||||||
|
|
||||||
if (!vdec)
|
// 0x80 seems like a common prefix
|
||||||
|
if (!vdec || (frc & 0xf0) != 0x80)
|
||||||
{
|
{
|
||||||
return CELL_VDEC_ERROR_ARG;
|
return CELL_VDEC_ERROR_ARG;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: check frc value
|
vdec->in_cmd.push(CellVdecFrameRate{frc & 0x87});
|
||||||
vdec->in_cmd.push(frc);
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue