aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/host1x/nx2_video_decoder.cpp
diff options
context:
space:
mode:
authorDjihad Mahboubi <76681596+Djihads80@users.noreply.github.com>2026-11-01 17:25:14 +0100
committerGitHub <noreply@github.com>2026-11-01 17:25:14 +0100
commit6957331b913bd50dfab106071e8c7ff4fa662599 (patch)
treed4e4aea57d2b0198009576b16aa25fb4394dc176 /src/video_core/host1x/nx2_video_decoder.cpp
parentfce9c5fd25c66558eb8ed4e9e5ca9129589a5e7d (diff)
parent959973a76abaa5444b4b300c37b6d8245ac89396 (diff)
Merge pull request #218 from Djihads80/fix/nx2-video-av1
nx2: play AV1 movies (FFmpeg with dav1d on Windows and Linux x86_64)
Diffstat (limited to 'src/video_core/host1x/nx2_video_decoder.cpp')
-rw-r--r--src/video_core/host1x/nx2_video_decoder.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/host1x/nx2_video_decoder.cpp b/src/video_core/host1x/nx2_video_decoder.cpp
index 7d185ca573..9b34bd84af 100644
--- a/src/video_core/host1x/nx2_video_decoder.cpp
+++ b/src/video_core/host1x/nx2_video_decoder.cpp
@@ -35,6 +35,10 @@ std::optional<NvdecCommon::VideoCodec> CodecFromMime(std::string_view mime) {
if (mime.find("vp8") != std::string_view::npos) {
return NvdecCommon::VideoCodec::VP8;
}
+ // "video/av01" or "video/av1". FFmpeg decodes AV1 with libdav1d.
+ if (mime.find("av01") != std::string_view::npos || mime.find("av1") != std::string_view::npos) {
+ return NvdecCommon::VideoCodec::AV1;
+ }
if (mime.find("avc") != std::string_view::npos || mime.find("264") != std::string_view::npos) {
return NvdecCommon::VideoCodec::H264;
}