Video: Stricter HEVC mimetype detection for MediaRecorder If mimetype is `video/x-matroska;codecs=hvc1.2.4.L93.B0,opus`, theĀ previous code will only detect if `hvc1` is included or not, so for this mimetype `MediaRecorderHandler::CanSupportMimeType` will return true if the platform supports HEVC main profile. Apparently, this mimetype indicates the profile is HEVC main10 profile, but since we don't support HEVC main10 profile encoding, it should just return false instead. This CL makes the check logic stricter with the approach below: 1. Check if the profile is the HEVC main profileĀ if it can be parsed. 2. If it can not be parsed, then the codec must be equals to `hvc1`. Bug: 40276507 Change-Id: I72f2179a561444f033e6bbe24e21e6f28516096e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6018903 Commit-Queue: Sida Zhu <zhusida@bytedance.com> Reviewed-by: Dale Curtis <dalecurtis@chromium.org> Cr-Commit-Position: refs/heads/main@{#1383785}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure.
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.