Commit d2484639 authored by James Almer's avatar James Almer

Merge commit '48bb0da0'

* commit '48bb0da0':
  lavc: Drop deprecated way of setting audio delay on encode
Merged-by: 's avatarJames Almer <jamrial@gmail.com>
parents 2ccd00da 48bb0da0
...@@ -257,10 +257,6 @@ end: ...@@ -257,10 +257,6 @@ end:
av_frame_free(&padded_frame); av_frame_free(&padded_frame);
av_free(extended_frame); av_free(extended_frame);
#if FF_API_AUDIOENC_DELAY
avctx->delay = avctx->initial_padding;
#endif
return ret; return ret;
} }
......
...@@ -1008,11 +1008,6 @@ FF_ENABLE_DEPRECATION_WARNINGS ...@@ -1008,11 +1008,6 @@ FF_ENABLE_DEPRECATION_WARNINGS
ret=0; ret=0;
#if FF_API_AUDIOENC_DELAY
if (av_codec_is_encoder(avctx->codec))
avctx->delay = avctx->initial_padding;
#endif
if (av_codec_is_decoder(avctx->codec)) { if (av_codec_is_decoder(avctx->codec)) {
if (!avctx->bit_rate) if (!avctx->bit_rate)
avctx->bit_rate = get_bit_rate(avctx); avctx->bit_rate = get_bit_rate(avctx);
......
...@@ -61,9 +61,6 @@ ...@@ -61,9 +61,6 @@
/* XXX: don't forget to drop the -vismv documentation */ /* XXX: don't forget to drop the -vismv documentation */
#define FF_API_VISMV (LIBAVCODEC_VERSION_MAJOR < 58) #define FF_API_VISMV (LIBAVCODEC_VERSION_MAJOR < 58)
#endif #endif
#ifndef FF_API_AUDIOENC_DELAY
#define FF_API_AUDIOENC_DELAY (LIBAVCODEC_VERSION_MAJOR < 58)
#endif
#ifndef FF_API_VAAPI_CONTEXT #ifndef FF_API_VAAPI_CONTEXT
#define FF_API_VAAPI_CONTEXT (LIBAVCODEC_VERSION_MAJOR < 58) #define FF_API_VAAPI_CONTEXT (LIBAVCODEC_VERSION_MAJOR < 58)
#endif #endif
......
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