}
final List<String> avfilterArgs = createAvfilterOptions(ffop.getAvfilterOption());
if (!prof.isVhookDisabled()) {
- // TODO 引数冗長
- final String vhookArg = getVhookArg(prof, prof.isCommentOverlay(), transformedComment.getPath(), isHD);
+ final String vhookArg = getVhookArg(prof, transformedComment.getPath(), isHD);
if (isNotBlank(vhookArg)) {
avfilterArgs.add(vhookArg);
}
return avfilterArgs;
}
- private static String getVhookArg(ConvertProfile prof, boolean addComment, String commPath, boolean isHD) throws
+ private static String getVhookArg(ConvertProfile prof, String commPath, boolean isHD) throws
UnsupportedEncodingException {
StringBuilder sb = new StringBuilder();
sb.append("vhext=");
sb.append(prof.getVhook().getPath().replace("\\", "/"));
- if (addComment) {
+ if (prof.isCommentOverlay()) {
sb.append("|");
sb.append("--data-user:");
sb.append(URLEncoder.encode(commPath.replace("\\", "/"), "Shift_JIS"));