diff options
Diffstat (limited to 'tests/c2_e2e_test/jni/common.cpp')
-rw-r--r-- | tests/c2_e2e_test/jni/common.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/c2_e2e_test/jni/common.cpp b/tests/c2_e2e_test/jni/common.cpp index 50f4cdf..673e36c 100644 --- a/tests/c2_e2e_test/jni/common.cpp +++ b/tests/c2_e2e_test/jni/common.cpp @@ -257,6 +257,7 @@ VideoCodecType VideoCodecProfileToType(VideoCodecProfile profile) { if (profile >= H264PROFILE_MIN && profile <= H264PROFILE_MAX) return VideoCodecType::H264; if (profile >= VP8PROFILE_MIN && profile <= VP8PROFILE_MAX) return VideoCodecType::VP8; if (profile >= VP9PROFILE_MIN && profile <= VP9PROFILE_MAX) return VideoCodecType::VP9; + if (profile >= HEVCPROFILE_MIN && profile <= HEVCPROFILE_MAX) return VideoCodecType::HEVC; return VideoCodecType::UNKNOWN; } @@ -286,6 +287,8 @@ const char* GetMimeType(VideoCodecType type) { return "video/x-vnd.on2.vp8"; case VideoCodecType::VP9: return "video/x-vnd.on2.vp9"; + case VideoCodecType::HEVC: + return "video/hevc"; default: // unknown type return nullptr; } |