aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/avformat.h
diff options
context:
space:
mode:
authorJames Darnley <james.darnley@gmail.com>2013-12-29 22:42:33 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-01-24 22:33:21 +0100
commit86bee7984e30cf7df6ad353be7c5153f5988e797 (patch)
tree040e64e01cf34c98fe37ec9652bddc64e2f90a34 /libavformat/avformat.h
parent1d073850538694f6341e7f09cf5f8b30839df5d7 (diff)
downloadffmpeg-86bee7984e30cf7df6ad353be7c5153f5988e797.tar.gz
AVFormatContext: add metadata_header_padding field
This field is used to store the number of bytes that should be written as padding to a metadata header of a file. For example: - The FLAC format's METADATA_BLOCK_PADDING [1] - The ID3v2 tag format's padding [2] [1] http://xiph.org/flac/format.html#metadata_block_padding [2] http://id3.org/id3v2.3.0#ID3v2_overview Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/avformat.h')
-rw-r--r--libavformat/avformat.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index 30fc8dbbf5..a495ee0b79 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -1348,6 +1348,13 @@ typedef struct AVFormatContext {
* Demuxing: Set by user via av_format_set_subtitle_codec (NO direct access).
*/
AVCodec *subtitle_codec;
+
+ /**
+ * Number of bytes to be written as padding in a metadata header.
+ * Demuxing: Unused.
+ * Muxing: Set by user via av_format_set_metadata_header_padding.
+ */
+ int metadata_header_padding;
} AVFormatContext;
int av_format_get_probe_score(const AVFormatContext *s);
@@ -1357,6 +1364,8 @@ AVCodec * av_format_get_audio_codec(const AVFormatContext *s);
void av_format_set_audio_codec(AVFormatContext *s, AVCodec *c);
AVCodec * av_format_get_subtitle_codec(const AVFormatContext *s);
void av_format_set_subtitle_codec(AVFormatContext *s, AVCodec *c);
+int av_format_get_metadata_header_padding(const AVFormatContext *s);
+void av_format_set_metadata_header_padding(AVFormatContext *s, int c);
/**
* Returns the method used to set ctx->duration.