From 7f4ec4364bc4a73036660c1c6a3c4801db524e9e Mon Sep 17 00:00:00 2001 From: John Stebbins Date: Thu, 5 Nov 2015 09:49:02 -0800 Subject: avformat: expose av_stream_new_side_data helper Signed-off-by: Anton Khirnov --- libavformat/avformat.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'libavformat/avformat.h') diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 57fcbf568b..cd53420215 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -1343,6 +1343,16 @@ const AVClass *avformat_get_class(void); */ AVStream *avformat_new_stream(AVFormatContext *s, const AVCodec *c); +/** + * Allocate new information from stream. + * + * @param stream stream + * @param type desired side information type + * @param size side information size + * @return pointer to fresh allocated data or NULL otherwise + */ +uint8_t *av_stream_new_side_data(AVStream *stream, + enum AVPacketSideDataType type, int size); /** * Get side information from stream. * -- cgit v1.2.3