diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-05-19 22:16:01 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-05-21 20:53:12 +0400 |
commit | 7f7080dc73df87c9aa5b96faf99567277fc6c6eb (patch) | |
tree | 39a5be368bddac2d4abb562dc9c108a93fe113d9 /libavformat/avformat.h | |
parent | 91a8262b9dbc6e1ee9a2d4f376c5a50920b83512 (diff) |
avformat: add av_stream_get_end_pts()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/avformat.h')
-rw-r--r-- | libavformat/avformat.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 2677c27e4d..5c07541b36 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -1067,6 +1067,13 @@ typedef struct AVStream { AVRational av_stream_get_r_frame_rate(const AVStream *s); void av_stream_set_r_frame_rate(AVStream *s, AVRational r); +/** + * Returns the pts of the last muxed packet + its duration + * + * the retuned value is undefined when used with a demuxer. + */ +int64_t av_stream_get_end_pts(const AVStream *st); + #define AV_PROGRAM_RUNNING 1 /** |