From ee4e8050931250f609a37f300a1d1831a44ecb1b Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 25 Dec 2013 16:34:46 +0100 Subject: avformat: add ff_get_extradata() Signed-off-by: Michael Niedermayer --- libavformat/internal.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libavformat/internal.h') diff --git a/libavformat/internal.h b/libavformat/internal.h index edc6a11685..1560e9f44f 100644 --- a/libavformat/internal.h +++ b/libavformat/internal.h @@ -371,6 +371,15 @@ int ff_generate_avci_extradata(AVStream *st); */ int ff_alloc_extradata(AVCodecContext *avctx, int size); +/** + * Allocate extradata with additional FF_INPUT_BUFFER_PADDING_SIZE at end + * which is always set to 0 and fill it from pb. + * + * @param size size of extradata + * @return >= 0 if OK, AVERROR_xxx on error + */ +int ff_get_extradata(AVCodecContext *avctx, AVIOContext *pb, int size); + /** * add frame for rfps calculation. * -- cgit v1.2.3