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