summaryrefslogtreecommitdiff
path: root/libavformat/utils.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2021-02-13 13:32:23 -0300
committerJames Almer <jamrial@gmail.com>2021-02-22 20:50:15 -0300
commit7b30dad3a696cc5423218ba0c11a48b6009a121b (patch)
tree8d5f0bec9b5ca561f2205a52e7cf91f168ce420b /libavformat/utils.c
parent8d5bd5b8df89543f75eadd36f5c1755e4d6d51d4 (diff)
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 <jamrial@gmail.com>
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r--libavformat/utils.c2
1 files changed, 0 insertions, 2 deletions
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;