Commit 8e8c8607 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '1d55f8d5'

* commit '1d55f8d5':
  flacdec: export replaygain tags from Vorbis comments
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents c1d05362 1d55f8d5
...@@ -139,6 +139,7 @@ OBJS-$(CONFIG_FILMSTRIP_MUXER) += filmstripenc.o ...@@ -139,6 +139,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)
...@@ -143,6 +144,10 @@ static int flac_read_header(AVFormatContext *s) ...@@ -143,6 +144,10 @@ static int flac_read_header(AVFormatContext *s)
} }
} }
ret = ff_replaygain_export(st, s->metadata);
if (ret < 0)
return ret;
return 0; return 0;
fail: fail:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment