aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/utils.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-07-14 21:03:43 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-07-14 21:17:20 +0200
commit62227a70f0a4c07d7ead5775d8bad64797f8ef80 (patch)
tree6d5d7e4cb95547c8d1fe10a6c9fdf3acfa3be4aa /libavformat/utils.c
parent68215724997c26d02a215b377de441b511804ecc (diff)
downloadffmpeg-62227a70f0a4c07d7ead5775d8bad64797f8ef80.tar.gz
avformat: add av_stream_get_parser() to access avformat AVParser
The AVStream.parser field is considered private and its location cannot be preserved while preserving also ABI compatibility to libav, as libav added fields before it. Some tools like ffmpeg.c access this field though 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 140e254f36..e095d601e1 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -115,6 +115,11 @@ int64_t av_stream_get_end_pts(const AVStream *st)
return st->pts.val;
}
+struct AVCodecParserContext *av_stream_get_parser(const AVStream *st)
+{
+ return st->parser;
+}
+
void av_format_inject_global_side_data(AVFormatContext *s)
{
int i;