提交 1d55f8d5 编写于 作者: A Alessandro Ghedini 提交者: Anton Khirnov

flacdec: export replaygain tags from Vorbis comments

Signed-off-by: NAnton Khirnov <anton@khirnov.net>
上级 8542f9c4
...@@ -116,6 +116,7 @@ OBJS-$(CONFIG_FILMSTRIP_MUXER) += filmstripenc.o ...@@ -116,6 +116,7 @@ OBJS-$(CONFIG_FILMSTRIP_MUXER) += filmstripenc.o
OBJS-$(CONFIG_FLAC_DEMUXER) += flacdec.o rawdec.o \ OBJS-$(CONFIG_FLAC_DEMUXER) += flacdec.o rawdec.o \
flac_picture.o \ flac_picture.o \
oggparsevorbis.o \ oggparsevorbis.o \
replaygain.o \
vorbiscomment.o vorbiscomment.o
OBJS-$(CONFIG_FLAC_MUXER) += flacenc.o flacenc_header.o \ OBJS-$(CONFIG_FLAC_MUXER) += flacenc.o flacenc_header.o \
vorbiscomment.o vorbiscomment.o
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#include "rawdec.h" #include "rawdec.h"
#include "oggdec.h" #include "oggdec.h"
#include "vorbiscomment.h" #include "vorbiscomment.h"
#include "replaygain.h"
#include "libavcodec/bytestream.h" #include "libavcodec/bytestream.h"
static int flac_read_header(AVFormatContext *s) static int flac_read_header(AVFormatContext *s)
...@@ -146,6 +147,10 @@ static int flac_read_header(AVFormatContext *s) ...@@ -146,6 +147,10 @@ static int flac_read_header(AVFormatContext *s)
} }
} }
ret = ff_replaygain_export(st, s->metadata);
if (ret < 0)
return ret;
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册