Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2020-05-27 04:27:42 +0300
committerJames Almer <jamrial@gmail.com>2020-06-06 07:04:39 +0300
commit49d37b4b618b20669bbd7081e6af2aecf9c09745 (patch)
tree474500a966dbe82c77bd21f98bf5cb328efd0585 /libavcodec/libaomenc.c
parent4bc5eb27a74e3eb1805f21a33d4ef08f8f7026e4 (diff)
avcodec/libaomenc: remove the experimental flag when using libaom 2.0.0 or newer
Reviewed-by: James Zern <jzern@google.com> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/libaomenc.c')
-rw-r--r--libavcodec/libaomenc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/libaomenc.c b/libavcodec/libaomenc.c
index 9e4bddef85..1c78da719a 100644
--- a/libavcodec/libaomenc.c
+++ b/libavcodec/libaomenc.c
@@ -1056,6 +1056,9 @@ static av_cold void av1_init_static(AVCodec *codec)
codec->pix_fmts = av1_pix_fmts_highbd;
else
codec->pix_fmts = av1_pix_fmts;
+
+ if (aom_codec_version_major() < 2)
+ codec->capabilities |= AV_CODEC_CAP_EXPERIMENTAL;
}
static av_cold int av1_init(AVCodecContext *avctx)
@@ -1132,7 +1135,7 @@ AVCodec ff_libaom_av1_encoder = {
.init = av1_init,
.encode2 = aom_encode,
.close = aom_free,
- .capabilities = AV_CODEC_CAP_DELAY | AV_CODEC_CAP_AUTO_THREADS | AV_CODEC_CAP_EXPERIMENTAL,
+ .capabilities = AV_CODEC_CAP_DELAY | AV_CODEC_CAP_AUTO_THREADS,
.profiles = NULL_IF_CONFIG_SMALL(ff_av1_profiles),
.priv_class = &class_aom,
.defaults = defaults,