cellVdec: default FRC workaround

This commit is contained in:
Nekotekina 2017-03-17 20:51:06 +03:00
parent cff39ec3a9
commit 2b79a3691f
1 changed files with 8 additions and 0 deletions

View File

@ -296,6 +296,14 @@ struct vdec_thread : ppu_thread
next_dts += amend;
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
{
const u64 amend = u64{90000} * ctx->time_base.num * ctx->ticks_per_frame / ctx->time_base.den;