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>
This commit is contained in:
Michael Niedermayer
2014-07-14 21:03:43 +02:00
parent 6821572499
commit 62227a70f0
5 changed files with 11 additions and 2 deletions

View File

@@ -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;