diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-07-14 21:03:43 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-07-14 21:17:20 +0200 |
commit | 62227a70f0a4c07d7ead5775d8bad64797f8ef80 (patch) | |
tree | 6d5d7e4cb95547c8d1fe10a6c9fdf3acfa3be4aa /libavformat/avformat.h | |
parent | 68215724997c26d02a215b377de441b511804ecc (diff) | |
download | ffmpeg-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/avformat.h')
-rw-r--r-- | libavformat/avformat.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 0c3780827e..a9abfbd4c2 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -1069,6 +1069,7 @@ typedef struct AVStream { AVRational av_stream_get_r_frame_rate(const AVStream *s); void av_stream_set_r_frame_rate(AVStream *s, AVRational r); +struct AVCodecParserContext *av_stream_get_parser(const AVStream *s); /** * Returns the pts of the last muxed packet + its duration |