Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-10-13 14:19:09 +0400
committerPaul B Mahol <onemda@gmail.com>2013-10-14 00:13:38 +0400
commit3fd79833e266aec2d77cf07092e8b1406fd307d4 (patch)
tree9812ce213a4955aa463ebf61ae6409a24152da7f /libavformat/internal.h
parentfe448cd28d674c3eff3072552eae366d0b659ce9 (diff)
avformat: add ff_alloc_extradata() helper
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavformat/internal.h')
-rw-r--r--libavformat/internal.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libavformat/internal.h b/libavformat/internal.h
index ceeaa1c65f..36ee4c0be9 100644
--- a/libavformat/internal.h
+++ b/libavformat/internal.h
@@ -361,4 +361,13 @@ AVRational ff_choose_timebase(AVFormatContext *s, AVStream *st, int min_precissi
*/
void ff_generate_avci_extradata(AVStream *st);
+/**
+ * Allocate extradata with additional FF_INPUT_BUFFER_PADDING_SIZE at end
+ * which is always set to 0.
+ *
+ * @param size size of extradata
+ * @return 0 if OK, AVERROR_xxx on error
+ */
+int ff_alloc_extradata(AVCodecContext *avctx, int size);
+
#endif /* AVFORMAT_INTERNAL_H */