From 7b30dad3a696cc5423218ba0c11a48b6009a121b Mon Sep 17 00:00:00 2001 From: James Almer Date: Sat, 13 Feb 2021 13:32:23 -0300 Subject: avcodec: remove pointless lowres deprecation wrappers Neither the feature, public fields, or AVOptions were ever truly deprecated, nor will have been removed if this FF_API_ define was left in place, so get rid of it as it's misleading. Signed-off-by: James Almer --- libavformat/utils.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'libavformat/utils.c') diff --git a/libavformat/utils.c b/libavformat/utils.c index 652758e98e..6e92bd777a 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -4131,7 +4131,6 @@ FF_DISABLE_DEPRECATION_WARNINGS if (ret < 0) goto find_stream_info_err; -#if FF_API_LOWRES // The old API (AVStream.codec) "requires" the resolution to be adjusted // by the lowres factor. if (st->internal->avctx->lowres && st->internal->avctx->width) { @@ -4139,7 +4138,6 @@ FF_DISABLE_DEPRECATION_WARNINGS st->codec->width = st->internal->avctx->width; st->codec->height = st->internal->avctx->height; } -#endif if (st->codec->codec_tag != MKTAG('t','m','c','d')) { st->codec->time_base = st->internal->avctx->time_base; -- cgit v1.2.3