diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-12-25 16:34:46 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-12-25 17:14:32 +0100 |
commit | ee4e8050931250f609a37f300a1d1831a44ecb1b (patch) | |
tree | fcd75c93561ef0d5f0d5af5468d57a59267de17f /libavformat/internal.h | |
parent | ac480cb58dbe7859c96a08e9e5cd3dd3b0fb0ae7 (diff) | |
download | ffmpeg-ee4e8050931250f609a37f300a1d1831a44ecb1b.tar.gz |
avformat: add ff_get_extradata()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/internal.h')
-rw-r--r-- | libavformat/internal.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libavformat/internal.h b/libavformat/internal.h index edc6a11685..1560e9f44f 100644 --- a/libavformat/internal.h +++ b/libavformat/internal.h @@ -372,6 +372,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. * * @param dts timestamp of the i-th frame |