aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/demux.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-05-06 21:28:57 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-05-10 07:45:58 +0200
commita085cfa65414ff4346d8367cfb54d50d4925396f (patch)
treecc6c802f6f5e3fd40d447bf3d442834be839c1f5 /libavformat/demux.h
parentaef16886dde59d41bdeef8dfe78cd7d9055bf50e (diff)
downloadffmpeg-a085cfa65414ff4346d8367cfb54d50d4925396f.tar.gz
avformat/utils: Move ff_get_extradata to demux_utils.c
It is only used by demuxers (although it is hypothetically possible that some day e.g. a protocol might need it, but that is unlikely given that they don't deal with AVCodecParameters). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/demux.h')
-rw-r--r--libavformat/demux.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libavformat/demux.h b/libavformat/demux.h
index 64adaff07d..209cd813ab 100644
--- a/libavformat/demux.h
+++ b/libavformat/demux.h
@@ -217,4 +217,13 @@ int ff_add_param_change(AVPacket *pkt, int32_t channels,
*/
int ff_generate_avci_extradata(AVStream *st);
+/**
+ * Allocate extradata with additional AV_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(void *logctx, AVCodecParameters *par, AVIOContext *pb, int size);
+
#endif /* AVFORMAT_DEMUX_H */