diff options
author | Moritz Barsnick <barsnick@gmx.net> | 2019-03-13 10:17:40 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2019-09-20 23:26:34 +0200 |
commit | 6390f52ac79932ed53a96619aa9cf2efd0a0fd19 (patch) | |
tree | b51f6ae02f60b575b98de912613c9c36d5fe4db9 /libavformat | |
parent | 9e0a071edec93a7bd23f389fb1724ec6b43f8304 (diff) | |
download | ffmpeg-6390f52ac79932ed53a96619aa9cf2efd0a0fd19.tar.gz |
avformat/aiffdec: parse replaygain metadata
Signed-off-by: Moritz Barsnick <barsnick@gmx.net>
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/aiffdec.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/aiffdec.c b/libavformat/aiffdec.c index fcedb0a804..61ef099f26 100644 --- a/libavformat/aiffdec.c +++ b/libavformat/aiffdec.c @@ -29,6 +29,7 @@ #include "isom.h" #include "id3v2.h" #include "mov_chan.h" +#include "replaygain.h" #define AIFF 0 #define AIFF_C_VERSION1 0xA2805140 @@ -348,6 +349,10 @@ static int aiff_read_header(AVFormatContext *s) } } + ret = ff_replaygain_export(st, s->metadata); + if (ret < 0) + return ret; + got_sound: if (!st->codecpar->block_align && st->codecpar->codec_id == AV_CODEC_ID_QCELP) { av_log(s, AV_LOG_WARNING, "qcelp without wave chunk, assuming full rate\n"); |