We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e9c411c + 6261e72 commit a09de49Copy full SHA for a09de49
lib/src/main/java/net/ypresto/androidtranscoder/engine/MediaFormatValidator.java
@@ -26,6 +26,7 @@
26
class MediaFormatValidator {
27
// Refer: http://en.wikipedia.org/wiki/H.264/MPEG-4_AVC#Profiles
28
private static final byte PROFILE_IDC_BASELINE = 66;
29
+ private static final byte PROFILE_IDC_HI = 100;
30
31
public static void validateVideoOutputFormat(MediaFormat format) {
32
String mime = format.getString(MediaFormat.KEY_MIME);
@@ -36,7 +37,8 @@ public static void validateVideoOutputFormat(MediaFormat format) {
36
37
}
38
ByteBuffer spsBuffer = AvcCsdUtils.getSpsBuffer(format);
39
byte profileIdc = AvcSpsUtils.getProfileIdc(spsBuffer);
- if (profileIdc != PROFILE_IDC_BASELINE) {
40
+ boolean availableProfile = (profileIdc == PROFILE_IDC_BASELINE || profileIdc == PROFILE_IDC_HI);
41
+ if (!availableProfile) {
42
throw new InvalidOutputFormatException("Non-baseline AVC video profile is not supported by Android OS, actual profile_idc: " + profileIdc);
43
44
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments