player: rename av01 -> av1

This commit is contained in:
Yuriy Liskov
2022-08-06 00:03:53 +03:00
parent 382c5c559c
commit fd100eebee

View File

@@ -11,6 +11,7 @@ import java.util.HashMap;
public class TrackSelectorUtil {
private static final String CODEC_SHORT_AV1 = "av01";
private static final String CODEC_SHORT_AV1_FIXED = "av1";
private static final String CODEC_SHORT_AVC = "avc";
private static final String CODEC_SHORT_VP9 = "vp9";
private static final String CODEC_SHORT_VP9_HDR = "vp9.2";
@@ -134,7 +135,8 @@ public class TrackSelectorUtil {
for (String codecName : codecNames) {
if (codec.contains(codecName)) {
return codecName;
return codecName
.replace(CODEC_SHORT_AV1, CODEC_SHORT_AV1_FIXED);
}
}