diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2016-01-15 20:57:46 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2016-01-15 20:57:46 +0000 |
| commit | 732cf510bc813bf11453f2f14dd5084d641793fa (patch) | |
| tree | bcb2a7bceab91c5d0903720afe4a8784c5b343bf /src/plugins/Input/ffmpeg/decoder_ffmpeg.cpp | |
| parent | 3a08cb8fbb96b7b7280e417fb2f3a954fda82d12 (diff) | |
| download | qmmp-732cf510bc813bf11453f2f14dd5084d641793fa.tar.gz qmmp-732cf510bc813bf11453f2f14dd5084d641793fa.tar.bz2 qmmp-732cf510bc813bf11453f2f14dd5084d641793fa.zip | |
ffmpeg: added replaygain support
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@6037 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Input/ffmpeg/decoder_ffmpeg.cpp')
| -rw-r--r-- | src/plugins/Input/ffmpeg/decoder_ffmpeg.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/Input/ffmpeg/decoder_ffmpeg.cpp b/src/plugins/Input/ffmpeg/decoder_ffmpeg.cpp index 953f2f60e..16a6c3bff 100644 --- a/src/plugins/Input/ffmpeg/decoder_ffmpeg.cpp +++ b/src/plugins/Input/ffmpeg/decoder_ffmpeg.cpp @@ -20,6 +20,7 @@ #include <QObject> #include <QFile> +#include "replaygainreader.h" #include "decoder_ffmpeg.h" #if (LIBAVCODEC_VERSION_INT >= ((55<<16)+(34<<8)+0)) //libav-10: 55.34.1; ffmpeg-2.1: 55.39.100 extern "C"{ @@ -191,6 +192,11 @@ bool DecoderFFmpeg::initialize() addMetaData(metaData); } + //replay gain + ReplayGainReader rg(ic); + setReplayGainInfo(rg.replayGainInfo()); + + ic->flags |= AVFMT_FLAG_GENPTS; av_read_play(ic); for (wma_idx = 0; wma_idx < (int)ic->nb_streams; wma_idx++) |
