Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-05-19 22:16:01 +0400
committerMichael Niedermayer <michaelni@gmx.at>2014-05-21 20:53:12 +0400
commit7f7080dc73df87c9aa5b96faf99567277fc6c6eb (patch)
tree39a5be368bddac2d4abb562dc9c108a93fe113d9 /libavformat/utils.c
parent91a8262b9dbc6e1ee9a2d4f376c5a50920b83512 (diff)
avformat: add av_stream_get_end_pts()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r--libavformat/utils.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index f840bc045e..8e791776fb 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -110,6 +110,11 @@ MAKE_ACCESSORS(AVFormatContext, format, int, metadata_header_padding)
MAKE_ACCESSORS(AVFormatContext, format, void *, opaque)
MAKE_ACCESSORS(AVFormatContext, format, av_format_control_message, control_message_cb)
+int64_t av_stream_get_end_pts(const AVStream *st)
+{
+ return st->pts.val;
+}
+
void av_format_inject_global_side_data(AVFormatContext *s)
{
int i;