From 2b79a3691f064362b4ee9fac9c316668fffe1d16 Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Fri, 17 Mar 2017 20:51:06 +0300 Subject: [PATCH] cellVdec: default FRC workaround --- rpcs3/Emu/Cell/Modules/cellVdec.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/rpcs3/Emu/Cell/Modules/cellVdec.cpp b/rpcs3/Emu/Cell/Modules/cellVdec.cpp index 155ae4307a..0460f51bfe 100644 --- a/rpcs3/Emu/Cell/Modules/cellVdec.cpp +++ b/rpcs3/Emu/Cell/Modules/cellVdec.cpp @@ -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;