VideoCommon: rewrite frame skipping code

please add brackets here.