From c23c96b638cbf6c489fd301e6b3d5555632fba37 Mon Sep 17 00:00:00 2001 From: Janne Grunau Date: Mon, 19 May 2014 16:29:30 +0200 Subject: lavf: add av_stream_get_side_data --- libavformat/avformat.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'libavformat/avformat.h') diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 5ed50f448b..f6b38d5778 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -1326,6 +1326,17 @@ const AVClass *avformat_get_class(void); */ AVStream *avformat_new_stream(AVFormatContext *s, AVCodec *c); +/** + * Get side information from stream. + * + * @param stream stream + * @param type desired side information type + * @param size pointer for side information size to store (optional) + * @return pointer to data if present or NULL otherwise + */ +uint8_t *av_stream_get_side_data(AVStream *stream, + enum AVPacketSideDataType type, int *size); + AVProgram *av_new_program(AVFormatContext *s, int id); /** -- cgit v1.2.3