opus/matroska: Adding support for DiscardPadding in muxer
authorVignesh Venkatasubramanian <vigneshv@google.com>
Fri, 30 Aug 2013 18:26:37 +0000 (11:26 -0700)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 9 Sep 2013 23:04:06 +0000 (01:04 +0200)
commitbb47aa5850c8f31939a978d361c834d1f3a53960
treeb6aea10fa1c95a7e86d325d090a4838f6e424f5e
parentd1a16564a23703ce63f9d875d50eb0ef48bddf19
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>
libavformat/matroska.h
libavformat/matroskaenc.c