From 41a88dff20a4f415e5a6e87be3374541657cc76f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Cerveau?= Date: Mon, 28 Oct 2024 12:41:18 +0100 Subject: [PATCH] FFMPEG: add support for streamed AV1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Support mp4 and mkv AV1 media streams Signed-off-by: Stéphane Cerveau --- vk_video_decoder/libs/VkDecoderUtils/FFmpegDemuxer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vk_video_decoder/libs/VkDecoderUtils/FFmpegDemuxer.cpp b/vk_video_decoder/libs/VkDecoderUtils/FFmpegDemuxer.cpp index b11b0a49..37888fcc 100644 --- a/vk_video_decoder/libs/VkDecoderUtils/FFmpegDemuxer.cpp +++ b/vk_video_decoder/libs/VkDecoderUtils/FFmpegDemuxer.cpp @@ -138,6 +138,8 @@ class FFmpegDemuxer : public VideoStreamDemuxer { bsf = av_bsf_get_by_name("h264_mp4toannexb"); } else if (videoCodec == AV_CODEC_ID_HEVC) { bsf = av_bsf_get_by_name("hevc_mp4toannexb"); + } else if (videoCodec == AV_CODEC_ID_AV1) { + bsf = av_bsf_get_by_name("av1_metadata"); } if (!bsf) {