mirror of https://git.ffmpeg.org/ffmpeg.git
lavf: remove disabled FF_API_PRELOAD cruft
This commit is contained in:
parent
1329827e79
commit
2a0f868cfa
|
@ -851,9 +851,6 @@ typedef struct AVFormatContext {
|
|||
#endif
|
||||
|
||||
unsigned int packet_size;
|
||||
#if FF_API_PRELOAD
|
||||
attribute_deprecated int preload;
|
||||
#endif
|
||||
int max_delay;
|
||||
|
||||
int flags;
|
||||
|
|
|
@ -1158,10 +1158,6 @@ static int mpeg_mux_write_packet(AVFormatContext *ctx, AVPacket *pkt)
|
|||
int preload;
|
||||
const int is_iframe = st->codec->codec_type == AVMEDIA_TYPE_VIDEO && (pkt->flags & AV_PKT_FLAG_KEY);
|
||||
|
||||
#if FF_API_PRELOAD
|
||||
if (ctx->preload)
|
||||
s->preload = ctx->preload;
|
||||
#endif
|
||||
preload = av_rescale(s->preload, 90000, AV_TIME_BASE);
|
||||
|
||||
pts= pkt->pts;
|
||||
|
|
|
@ -47,9 +47,6 @@
|
|||
* Those FF_API_* defines are not part of public API.
|
||||
* They may change, break or disappear at any time.
|
||||
*/
|
||||
#ifndef FF_API_PRELOAD
|
||||
#define FF_API_PRELOAD (LIBAVFORMAT_VERSION_MAJOR < 54)
|
||||
#endif
|
||||
#ifndef FF_API_STREAM_COPY
|
||||
#define FF_API_STREAM_COPY (LIBAVFORMAT_VERSION_MAJOR < 54)
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue