summaryrefslogtreecommitdiff
path: root/libavformat/wvenc.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2012-07-27 09:42:46 +0000
committerPaul B Mahol <onemda@gmail.com>2012-07-29 01:28:12 +0000
commitc25dc1f9c75848573658ec5291c341f5407eb223 (patch)
tree8976f787a61b9d40ede890eb8f4e18a6fa5e2909 /libavformat/wvenc.c
parentbd93f96540f225b88f42eb25b464defb88d1fb7c (diff)
wvenc: support for ape tags
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavformat/wvenc.c')
-rw-r--r--libavformat/wvenc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/wvenc.c b/libavformat/wvenc.c
index 7709a2e268..0f9bbf222b 100644
--- a/libavformat/wvenc.c
+++ b/libavformat/wvenc.c
@@ -22,6 +22,7 @@
#include "avformat.h"
#include "internal.h"
#include "avio_internal.h"
+#include "apetag.h"
typedef struct{
uint32_t duration;
@@ -75,6 +76,8 @@ static int write_trailer(AVFormatContext *s)
WVMuxContext *wc = s->priv_data;
AVIOContext *pb = s->pb;
+ ff_ape_write(s);
+
if (pb->seekable) {
avio_seek(pb, 12, SEEK_SET);
avio_wl32(pb, wc->duration);