summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Patou <mpatou@fb.com>2021-06-20 22:19:18 +0200
committerThilo Borgmann <thilo.borgmann@mail.de>2021-06-20 22:30:38 +0200
commit52795d7f091f45a170eed9bc7d1a92f396d176c9 (patch)
tree3c8c4a63fba73ab8bbf734b6fe744d658ddcdc90
parent602bbf71f683dc564822c39070c42246d2c2b5e2 (diff)
lavf/webmdashenc.c: Allow AV1 video in WebM
Suggested-By: ffmpeg@fb.com
-rw-r--r--libavformat/version.h2
-rw-r--r--libavformat/webmdashenc.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/libavformat/version.h b/libavformat/version.h
index 7f02e18f24..eb2d7e5da4 100644
--- a/libavformat/version.h
+++ b/libavformat/version.h
@@ -33,7 +33,7 @@
// Also please add any ticket numbers that you believe might be affected here
#define LIBAVFORMAT_VERSION_MAJOR 59
#define LIBAVFORMAT_VERSION_MINOR 3
-#define LIBAVFORMAT_VERSION_MICRO 100
+#define LIBAVFORMAT_VERSION_MICRO 101
#define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
LIBAVFORMAT_VERSION_MINOR, \
diff --git a/libavformat/webmdashenc.c b/libavformat/webmdashenc.c
index 6f9622af5f..cf69bd35b1 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);
}