From 1d55f8d5f6f2cd74fa27170e2be37a72441d9202 Mon Sep 17 00:00:00 2001 From: Alessandro Ghedini Date: Fri, 4 Apr 2014 11:50:45 +0200 Subject: flacdec: export replaygain tags from Vorbis comments Signed-off-by: Anton Khirnov --- libavformat/flacdec.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libavformat/flacdec.c') diff --git a/libavformat/flacdec.c b/libavformat/flacdec.c index ecbb7ec0ef..11360a9da1 100644 --- a/libavformat/flacdec.c +++ b/libavformat/flacdec.c @@ -26,6 +26,7 @@ #include "rawdec.h" #include "oggdec.h" #include "vorbiscomment.h" +#include "replaygain.h" #include "libavcodec/bytestream.h" 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; } -- cgit v1.2.3