mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-17 06:11:17 +08:00
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>
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user