Commit 49d37b4b authored by James Almer's avatar James Almer

avcodec/libaomenc: remove the experimental flag when using libaom 2.0.0 or newer

Reviewed-by: 's avatarJames Zern <jzern@google.com>
Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent 4bc5eb27
...@@ -1056,6 +1056,9 @@ static av_cold void av1_init_static(AVCodec *codec) ...@@ -1056,6 +1056,9 @@ static av_cold void av1_init_static(AVCodec *codec)
codec->pix_fmts = av1_pix_fmts_highbd; codec->pix_fmts = av1_pix_fmts_highbd;
else else
codec->pix_fmts = av1_pix_fmts; 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) static av_cold int av1_init(AVCodecContext *avctx)
...@@ -1132,7 +1135,7 @@ AVCodec ff_libaom_av1_encoder = { ...@@ -1132,7 +1135,7 @@ AVCodec ff_libaom_av1_encoder = {
.init = av1_init, .init = av1_init,
.encode2 = aom_encode, .encode2 = aom_encode,
.close = aom_free, .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), .profiles = NULL_IF_CONFIG_SMALL(ff_av1_profiles),
.priv_class = &class_aom, .priv_class = &class_aom,
.defaults = defaults, .defaults = defaults,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment