diff options
author | Nicolas George <nicolas.george@normalesup.org> | 2011-06-30 19:45:22 +0200 |
---|---|---|
committer | Nicolas George <nicolas.george@normalesup.org> | 2011-07-01 09:49:27 +0200 |
commit | b442ca69d9d3cc50f00b43a25b200631cfb1e9ec (patch) | |
tree | 1d8afaadda50785a4580a35678892f6c28a20b9f /libavformat/utils.c | |
parent | d1b029dec97cd740943eb0222a519a571e3349c5 (diff) | |
download | ffmpeg-b442ca69d9d3cc50f00b43a25b200631cfb1e9ec.tar.gz |
lavf: add an API to get output timestamps.
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index b3f0e12a65..da240f68e8 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -3285,6 +3285,15 @@ fail: return ret; } +int av_get_output_timestamp(struct AVFormatContext *s, int stream, + int64_t *dts, int64_t *wall) +{ + if (!s->oformat || !s->oformat->get_output_timestamp) + return AVERROR(ENOSYS); + s->oformat->get_output_timestamp(s, stream, dts, wall); + return 0; +} + void ff_program_add_stream_index(AVFormatContext *ac, int progid, unsigned int idx) { int i, j; |