diff options
author | Vignesh Venkatasubramanian <vigneshv@google.com> | 2013-02-13 13:51:48 -0800 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-02-14 00:46:28 +0100 |
commit | 30c5c45b123c45ede70988088528a2de6c869c3f (patch) | |
tree | 2a2d042f6ae4d52d03d149adc4dbfa9ce662fb81 /libavcodec/avcodec.h | |
parent | 701e9b82547c6fa72acfb91c86bf29c40722f154 (diff) | |
download | ffmpeg-30c5c45b123c45ede70988088528a2de6c869c3f.tar.gz |
Adding support for parsing BlockAdditional
Matroska specification lists support for BlockAdditional element
which is not supported by ffmpeg's matroska parser. This patch
adds grammar definitions for parsing that element (and few other
related elements) and then puts the data in AVPacket.side_data
with new AVPacketSideDataType AV_PKT_DATA_MATROSKA_BLOCKADDITIONAL.
Signed-off-by: Vignesh Venkatasubramanian <vigneshv@google.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r-- | libavcodec/avcodec.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index ca7764a8ba..68eac5525b 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -983,6 +983,14 @@ enum AVPacketSideDataType { * @endcode */ AV_PKT_DATA_SUBTITLE_POSITION, + + /** + * Data found in BlockAdditional element of matroska container. There is + * no end marker for the data, so it is required to rely on the side data + * size to recognize the end. 8 byte id (as found in BlockAddId) followed + * by data. + */ + AV_PKT_DATA_MATROSKA_BLOCKADDITIONAL, }; /** |