diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-07-14 23:03:43 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-07-15 01:26:06 +0400 |
commit | 9f8e3e6d1203e2b440ff3f7dbe90130a064963a1 (patch) | |
tree | 841acd4c1a8bc146ea8457896e2f6930a87f644f /libavformat/avformat.h | |
parent | 9752ab6b9e5d3b9f2347361b6b951911fecee022 (diff) |
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>
(cherry picked from commit 62227a70f0a4c07d7ead5775d8bad64797f8ef80)
Conflicts:
RELEASE_NOTES
doc/APIchanges
libavformat/utils.c
libavformat/version.h
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 7839c0adc5..1587059024 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -1005,6 +1005,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); #define AV_PROGRAM_RUNNING 1 |