mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-25 04:19:05 +00:00
lavc: remove disabled FF_API_DRC_SCALE cruft.
This commit is contained in:
parent
d2d931500b
commit
f326501a65
@ -174,11 +174,6 @@ static av_cold int ac3_decode_init(AVCodecContext *avctx)
|
|||||||
AC3DecodeContext *s = avctx->priv_data;
|
AC3DecodeContext *s = avctx->priv_data;
|
||||||
s->avctx = avctx;
|
s->avctx = avctx;
|
||||||
|
|
||||||
#if FF_API_DRC_SCALE
|
|
||||||
if (avctx->drc_scale)
|
|
||||||
s->drc_scale = avctx->drc_scale;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
ff_ac3_common_init();
|
ff_ac3_common_init();
|
||||||
ac3_tables_init();
|
ac3_tables_init();
|
||||||
ff_mdct_init(&s->imdct_256, 8, 1, 1.0);
|
ff_mdct_init(&s->imdct_256, 8, 1, 1.0);
|
||||||
|
@ -2597,17 +2597,6 @@ typedef struct AVCodecContext {
|
|||||||
int request_channels;
|
int request_channels;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if FF_API_DRC_SCALE
|
|
||||||
/**
|
|
||||||
* Percentage of dynamic range compression to be applied by the decoder.
|
|
||||||
* The default value is 1.0, corresponding to full compression.
|
|
||||||
* - encoding: unused
|
|
||||||
* - decoding: Set by user.
|
|
||||||
* @deprecated use AC3 decoder private option instead.
|
|
||||||
*/
|
|
||||||
attribute_deprecated float drc_scale;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* opaque 64bit number (generally a PTS) that will be reordered and
|
* opaque 64bit number (generally a PTS) that will be reordered and
|
||||||
* output in AVFrame.reordered_opaque
|
* output in AVFrame.reordered_opaque
|
||||||
|
@ -393,9 +393,6 @@ static const AVOption options[]={
|
|||||||
#if FF_API_REQUEST_CHANNELS
|
#if FF_API_REQUEST_CHANNELS
|
||||||
{"request_channels", "set desired number of audio channels", OFFSET(request_channels), AV_OPT_TYPE_INT, {.dbl = DEFAULT }, 0, INT_MAX, A|D},
|
{"request_channels", "set desired number of audio channels", OFFSET(request_channels), AV_OPT_TYPE_INT, {.dbl = DEFAULT }, 0, INT_MAX, A|D},
|
||||||
#endif
|
#endif
|
||||||
#if FF_API_DRC_SCALE
|
|
||||||
{"drc_scale", "percentage of dynamic range compression to apply", OFFSET(drc_scale), AV_OPT_TYPE_FLOAT, {.dbl = 0.0 }, 0.0, 1.0, A|D},
|
|
||||||
#endif
|
|
||||||
#if FF_API_LAME_GLOBAL_OPTS
|
#if FF_API_LAME_GLOBAL_OPTS
|
||||||
{"reservoir", "use bit reservoir", 0, AV_OPT_TYPE_CONST, {.dbl = CODEC_FLAG2_BIT_RESERVOIR }, INT_MIN, INT_MAX, A|E, "flags2"},
|
{"reservoir", "use bit reservoir", 0, AV_OPT_TYPE_CONST, {.dbl = CODEC_FLAG2_BIT_RESERVOIR }, INT_MIN, INT_MAX, A|E, "flags2"},
|
||||||
#endif
|
#endif
|
||||||
|
@ -41,9 +41,6 @@
|
|||||||
#ifndef FF_API_REQUEST_CHANNELS
|
#ifndef FF_API_REQUEST_CHANNELS
|
||||||
#define FF_API_REQUEST_CHANNELS (LIBAVCODEC_VERSION_MAJOR < 55)
|
#define FF_API_REQUEST_CHANNELS (LIBAVCODEC_VERSION_MAJOR < 55)
|
||||||
#endif
|
#endif
|
||||||
#ifndef FF_API_DRC_SCALE
|
|
||||||
#define FF_API_DRC_SCALE (LIBAVCODEC_VERSION_MAJOR < 54)
|
|
||||||
#endif
|
|
||||||
#ifndef FF_API_ER
|
#ifndef FF_API_ER
|
||||||
#define FF_API_ER (LIBAVCODEC_VERSION_MAJOR < 54)
|
#define FF_API_ER (LIBAVCODEC_VERSION_MAJOR < 54)
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user