Use static Pattern

This commit is contained in:
Reinhard Pointner 2016-10-02 01:24:33 +08:00
parent 34e20b5f47
commit 9c1b19d43f
1 changed files with 1 additions and 1 deletions

View File

@ -338,7 +338,7 @@ public class MediaBindingBean {
String codec = getMediaInfo(StreamKind.Audio, 0, "CodecID/Hint", "Format");
// remove punctuation (e.g. AC-3 => AC3)
return codec.replaceAll("\\p{Punct}", "");
return PUNCTUATION_OR_SPACE.matcher(codec).replaceAll("");
}
@Define("cf")