Unified · Split
| @@ -32,8 +32,7 @@ API changes, most recent first: · 31 unmodified lines | ||
| 32 | 32 | |
| 33 | 33 | 2014-05-xx - xxxxxxx - lavf 55.17.1 - avformat.h |
| 34 | 34 | Deprecate AVStream.pts and the AVFrac struct, which was its only use case. |
| 35 | − Those fields were poorly defined and not meant to be public, so there is | |
| 36 | − no replacement for them. | |
| 35 | + See use av_stream_get_end_pts() | |
| 37 | 36 | |
| 38 | 37 | 2014-05-18 - fd05602 - lavc 55.52.0 - avcodec.h |
| 39 | 38 | Add avcodec_free_context(). From now on it should be used for freeing |
| @@ -1067,6 +1067,13 @@ typedef struct AVStream { · 1066 unmodified lines | ||
| 1067 | 1067 | AVRational av_stream_get_r_frame_rate(const AVStream *s); |
| 1068 | 1068 | void av_stream_set_r_frame_rate(AVStream *s, AVRational r); |
| 1069 | 1069 | |
| 1070 | +/** | |
| 1071 | + * Returns the pts of the last muxed packet + its duration | |
| 1072 | + * | |
| 1073 | + * the retuned value is undefined when used with a demuxer. | |
| 1074 | + */ | |
| 1075 | +int64_t av_stream_get_end_pts(const AVStream *st); | |
| 1076 | + | |
| 1070 | 1077 | #define AV_PROGRAM_RUNNING 1 |
| 1071 | 1078 | |
| 1072 | 1079 | /** |
| @@ -110,6 +110,11 @@ MAKE_ACCESSORS(AVFormatContext, format, int, metadata_header_padding) · 109 unmodified lines | ||
| 110 | 110 | MAKE_ACCESSORS(AVFormatContext, format, void *, opaque) |
| 111 | 111 | MAKE_ACCESSORS(AVFormatContext, format, av_format_control_message, control_message_cb) |
| 112 | 112 | |
| 113 | +int64_t av_stream_get_end_pts(const AVStream *st) | |
| 114 | +{ | |
| 115 | + return st->pts.val; | |
| 116 | +} | |
| 117 | + | |
| 113 | 118 | void av_format_inject_global_side_data(AVFormatContext *s) |
| 114 | 119 | { |
| 115 | 120 | int i; |
| @@ -30,7 +30,7 @@ · 29 unmodified lines | ||
| 30 | 30 | #include "libavutil/version.h" |
| 31 | 31 | |
| 32 | 32 | #define LIBAVFORMAT_VERSION_MAJOR 55 |
| 33 | −#define LIBAVFORMAT_VERSION_MINOR 39 | |
| 33 | +#define LIBAVFORMAT_VERSION_MINOR 40 | |
| 34 | 34 | #define LIBAVFORMAT_VERSION_MICRO 100 |
| 35 | 35 | |
| 36 | 36 | #define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \ |