wvenc: support for ape tags

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol 2012-07-27 09:42:46 +00:00
parent bd93f96540
commit c25dc1f9c7

View File

@ -22,6 +22,7 @@
#include "avformat.h" #include "avformat.h"
#include "internal.h" #include "internal.h"
#include "avio_internal.h" #include "avio_internal.h"
#include "apetag.h"
typedef struct{ typedef struct{
uint32_t duration; uint32_t duration;
@ -75,6 +76,8 @@ static int write_trailer(AVFormatContext *s)
WVMuxContext *wc = s->priv_data; WVMuxContext *wc = s->priv_data;
AVIOContext *pb = s->pb; AVIOContext *pb = s->pb;
ff_ape_write(s);
if (pb->seekable) { if (pb->seekable) {
avio_seek(pb, 12, SEEK_SET); avio_seek(pb, 12, SEEK_SET);
avio_wl32(pb, wc->duration); avio_wl32(pb, wc->duration);