diff options
author | James Almer <jamrial@gmail.com> | 2016-09-27 16:07:14 +0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2016-09-27 16:42:39 +0300 |
commit | f0b6f7253f3e69a475722b8f0b0e4289201245bf (patch) | |
tree | 2872717b652a56f700dc80bbfc6f721b61ad460e /libavformat/avformat.h | |
parent | fd902510ac927c0a252c931f5fb29719a8f56e9c (diff) |
avformat: add av_stream_get_codec_timebase()
This will allow ffmpeg.c to stop using AVStream.codec in some cases
Signed-off-by: James Almer <jamrial@gmail.com>
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 ae70cc88ec..057f8c58aa 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -2922,6 +2922,13 @@ int avformat_transfer_internal_stream_timing_info(const AVOutputFormat *ofmt, enum AVTimebaseSource copy_tb); /** + * Get the internal codec timebase from a stream. + * + * @param st input stream to extract the timebase from + */ +AVRational av_stream_get_codec_timebase(const AVStream *st); + +/** * @} */ |