aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mux.c
diff options
context:
space:
mode:
authorVignesh Venkatasubramanian <vigneshv@google.com>2013-05-08 16:59:33 -0700
committerMichael Niedermayer <michaelni@gmx.at>2013-05-17 15:11:23 +0200
commit98c292a7a8f273050febc61acd725e572aa8d3ed (patch)
tree0cfbc64ae402feb26c5ed0f85c14fc6726f28360 /libavformat/mux.c
parent2fb193b1e7428fba0fe43ca9c231b3f822d65774 (diff)
downloadffmpeg-98c292a7a8f273050febc61acd725e572aa8d3ed.tar.gz
Adding support for encoding VP8 Alpha
This patch adds support for encoding VP8 files with alpha. The alpha channel is encoded separately and the output is placed in AVPacket's side_data. The muxer then muxes it into the BlockAdditional element of the matroska container. More details on spec here: http://goo.gl/wCP1y Signed-off-by: Vignesh Venkatasubramanian <vigneshv@google.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/mux.c')
-rw-r--r--libavformat/mux.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/mux.c b/libavformat/mux.c
index 9de8e69050..9b4b0b1249 100644
--- a/libavformat/mux.c
+++ b/libavformat/mux.c
@@ -584,6 +584,7 @@ int ff_interleave_add_packet(AVFormatContext *s, AVPacket *pkt,
#endif
pkt->buf = NULL;
av_dup_packet(&this_pktl->pkt); // duplicate the packet if it uses non-allocated memory
+ av_copy_packet_side_data(&this_pktl->pkt, &this_pktl->pkt); // copy side data
if (s->streams[pkt->stream_index]->last_in_packet_buffer) {
next_point = &(st->last_in_packet_buffer->next);