[FFmpeg-devel] [PATCH] lavf/webmdashenc.c: Allow AV1 video in WebM
Thilo Borgmann
thilo.borgmann at mail.de
Sun Jun 13 22:46:00 EEST 2021
Hi,
not sure about the spec backing this up, however the following site lists AV1
support in WebM:
https://developer.mozilla.org/en-US/docs/Web/Media/Formats/Video_codecs
-Thilo
-------------- next part --------------
From fa6a57486d7fc2cb4d110db05b0b231a2c3046e6 Mon Sep 17 00:00:00 2001
From: Matthieu Patou <mpatou at fb.com>
Date: Sun, 13 Jun 2021 21:41:06 +0200
Subject: [PATCH] lavf/webmdashenc.c: Allow AV1 video in WebM
Suggested-By: ffmpeg at fb.com
---
libavformat/webmdashenc.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavformat/webmdashenc.c b/libavformat/webmdashenc.c
index 6f9622a..cf69bd3 100644
--- a/libavformat/webmdashenc.c
+++ b/libavformat/webmdashenc.c
@@ -480,7 +480,8 @@ static int webm_dash_manifest_write_header(AVFormatContext *s)
for (unsigned i = 0; i < s->nb_streams; i++) {
enum AVCodecID codec_id = s->streams[i]->codecpar->codec_id;
if (codec_id != AV_CODEC_ID_VP8 && codec_id != AV_CODEC_ID_VP9 &&
- codec_id != AV_CODEC_ID_VORBIS && codec_id != AV_CODEC_ID_OPUS)
+ codec_id != AV_CODEC_ID_AV1 && codec_id != AV_CODEC_ID_VORBIS &&
+ codec_id != AV_CODEC_ID_OPUS)
return AVERROR(EINVAL);
}
--
1.8.3.2
More information about the ffmpeg-devel
mailing list