mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 05:51:27 +12:00
cellVdec: default FRC workaround
This commit is contained in:
parent
cff39ec3a9
commit
2b79a3691f
1 changed files with 8 additions and 0 deletions
|
@ -296,6 +296,14 @@ struct vdec_thread : ppu_thread
|
||||||
next_dts += amend;
|
next_dts += amend;
|
||||||
frame.frc = frc_set;
|
frame.frc = frc_set;
|
||||||
}
|
}
|
||||||
|
else if (ctx->time_base.num == 0)
|
||||||
|
{
|
||||||
|
// Hack
|
||||||
|
const u64 amend = u64{90000} / 30;
|
||||||
|
frame.frc = CELL_VDEC_FRC_30;
|
||||||
|
next_pts += amend;
|
||||||
|
next_dts += amend;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
const u64 amend = u64{90000} * ctx->time_base.num * ctx->ticks_per_frame / ctx->time_base.den;
|
const u64 amend = u64{90000} * ctx->time_base.num * ctx->ticks_per_frame / ctx->time_base.den;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue