You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-16 22:42:38 +02:00
avformat: remove deprecated FF_API_GET_DUR_ESTIMATE_METHOD
Deprecated since 2024-03-06. Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@ -1891,17 +1891,6 @@ typedef struct AVFormatContext {
|
||||
int64_t duration_probesize;
|
||||
} AVFormatContext;
|
||||
|
||||
#if FF_API_GET_DUR_ESTIMATE_METHOD
|
||||
/**
|
||||
* Returns the method used to set ctx->duration.
|
||||
*
|
||||
* @return AVFMT_DURATION_FROM_PTS, AVFMT_DURATION_FROM_STREAM, or AVFMT_DURATION_FROM_BITRATE.
|
||||
* @deprecated duration_estimation_method is public and can be read directly.
|
||||
*/
|
||||
attribute_deprecated
|
||||
enum AVDurationEstimationMethod av_fmt_ctx_get_duration_estimation_method(const AVFormatContext* ctx);
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @defgroup lavf_core Core functions
|
||||
* @ingroup libavf
|
||||
|
@ -187,13 +187,6 @@ AVFormatContext *avformat_alloc_context(void)
|
||||
return s;
|
||||
}
|
||||
|
||||
#if FF_API_GET_DUR_ESTIMATE_METHOD
|
||||
enum AVDurationEstimationMethod av_fmt_ctx_get_duration_estimation_method(const AVFormatContext* ctx)
|
||||
{
|
||||
return ctx->duration_estimation_method;
|
||||
}
|
||||
#endif
|
||||
|
||||
const AVClass *avformat_get_class(void)
|
||||
{
|
||||
return &av_format_context_class;
|
||||
|
@ -43,7 +43,6 @@
|
||||
*/
|
||||
#define FF_API_COMPUTE_PKT_FIELDS2 (LIBAVFORMAT_VERSION_MAJOR < 62)
|
||||
|
||||
#define FF_API_GET_DUR_ESTIMATE_METHOD (LIBAVFORMAT_VERSION_MAJOR < 62)
|
||||
#define FF_API_INTERNAL_TIMING (LIBAVFORMAT_VERSION_MAJOR < 62)
|
||||
|
||||
#define FF_API_R_FRAME_RATE 1
|
||||
|
Reference in New Issue
Block a user