wvenc: support for ape tags
authorPaul B Mahol <onemda@gmail.com>
Fri, 27 Jul 2012 09:42:46 +0000 (09:42 +0000)
committerPaul B Mahol <onemda@gmail.com>
Sun, 29 Jul 2012 01:28:12 +0000 (01:28 +0000)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavformat/wvenc.c

index 7709a2e..0f9bbf2 100644 (file)
@@ -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);