diff options
author | Vignesh Venkatasubramanian <vigneshv@google.com> | 2013-08-30 22:26:37 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-09-10 03:04:06 +0400 |
commit | bb47aa5850c8f31939a978d361c834d1f3a53960 (patch) | |
tree | b6aea10fa1c95a7e86d325d090a4838f6e424f5e /libavformat/matroska.h | |
parent | d1a16564a23703ce63f9d875d50eb0ef48bddf19 (diff) |
opus/matroska: Adding support for DiscardPadding in muxer
Support for end trimming Opus in Matroska is implemented by using
the DiscardPadding container element in the Block data. The last
chunk is stored as a Block instead of SimpleBlock and the
trimming information is stored and used to discard samples that
were padded by the Opus codec. This patch adds support for muxing
DiscardPadding element into the container with appropriate value.
Matroska spec for the DiscardPadding element can be found here:
http://matroska.org/technical/specs/index.html#DiscardPadding
Signed-off-by: Vignesh Venkatasubramanian <vigneshv@google.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/matroska.h')
-rw-r--r-- | libavformat/matroska.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/matroska.h b/libavformat/matroska.h index 7cf423c502..002fc4cbc9 100644 --- a/libavformat/matroska.h +++ b/libavformat/matroska.h @@ -198,6 +198,7 @@ #define MATROSKA_ID_BLOCKDURATION 0x9B #define MATROSKA_ID_BLOCKREFERENCE 0xFB #define MATROSKA_ID_CODECSTATE 0xA4 +#define MATROSKA_ID_DISCARDPADDING 0x75A2 /* IDs in the attachments master */ #define MATROSKA_ID_ATTACHEDFILE 0x61A7 |