History

avformat/options: Deprecate av_fmt_ctx_get_duration_estimation_method()

Forgotten in b7785d10b00c88029d8af7dbddac09ab0d6f2b7f.

Andreas Rheinhardt committed 2 years ago

Commit 49707b01 parent d65908c5 files · +12 −1Browse files

Showing the changes to libavformat (4 of 5 files). Show all

Unified · Split

4 files
  1. libavformat/avformat.h +4 −0
  2. libavformat/options.c +2 −0
  3. libavformat/version.h +1 −1
  4. libavformat/version_major.h +1 −0
libavformat/avformat.h+4−0
@@ -2008,12 +2008,16 @@ typedef struct AVFormatContext { · 2007 unmodified lines
20082008 */
20092009 void av_format_inject_global_side_data(AVFormatContext *s);
20102010
2011+#if FF_API_GET_DUR_ESTIMATE_METHOD
20112012 /**
20122013 * Returns the method used to set ctx->duration.
20132014 *
20142015 * @return AVFMT_DURATION_FROM_PTS, AVFMT_DURATION_FROM_STREAM, or AVFMT_DURATION_FROM_BITRATE.
2016+ * @deprecated duration_estimation_method is public and can be read directly.
20152017 */
2018+attribute_deprecated
20162019 enum AVDurationEstimationMethod av_fmt_ctx_get_duration_estimation_method(const AVFormatContext* ctx);
2020+#endif
20172021
20182022 /**
20192023 * @defgroup lavf_core Core functions
libavformat/options.c+2−0
@@ -198,10 +198,12 @@ FF_ENABLE_DEPRECATION_WARNINGS · 197 unmodified lines
198198 return s;
199199 }
200200
201+#if FF_API_GET_DUR_ESTIMATE_METHOD
201202 enum AVDurationEstimationMethod av_fmt_ctx_get_duration_estimation_method(const AVFormatContext* ctx)
202203 {
203204 return ctx->duration_estimation_method;
204205 }
206+#endif
205207
206208 const AVClass *avformat_get_class(void)
207209 {
libavformat/version.h+1−1
@@ -31,7 +31,7 @@ · 30 unmodified lines
3131
3232 #include "version_major.h"
3333
34−#define LIBAVFORMAT_VERSION_MINOR 24
34+#define LIBAVFORMAT_VERSION_MINOR 25
3535 #define LIBAVFORMAT_VERSION_MICRO 100
3636
3737 #define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
libavformat/version_major.h+1−0
@@ -50,6 +50,7 @@ · 49 unmodified lines
5050 #define FF_API_ALLOW_FLUSH (LIBAVFORMAT_VERSION_MAJOR < 61)
5151 #define FF_API_AVSTREAM_SIDE_DATA (LIBAVFORMAT_VERSION_MAJOR < 61)
5252
53+#define FF_API_GET_DUR_ESTIMATE_METHOD (LIBAVFORMAT_VERSION_MAJOR < 62)
5354
5455 #define FF_API_R_FRAME_RATE 1
5556

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t