aboutsummaryrefslogtreecommitdiff
path: root/libavformat/replaygain.c
AgeCommit message (Collapse)Author
2015-11-22Merge commit '7f4ec4364bc4a73036660c1c6a3c4801db524e9e'Derek Buitenhuis
* commit '7f4ec4364bc4a73036660c1c6a3c4801db524e9e': avformat: expose av_stream_new_side_data helper Conflicts: libavformat/internal.h Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2015-11-18avformat: expose av_stream_new_side_data helperJohn Stebbins
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2015-01-27Merge commit '4227e4fe7443733fb906f6fb6c265105e8269c74'Michael Niedermayer
* commit '4227e4fe7443733fb906f6fb6c265105e8269c74': lavf: add a convenience function for adding side data to a stream Conflicts: libavformat/internal.h libavformat/replaygain.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
2015-01-27lavf: add a convenience function for adding side data to a streamAnton Khirnov
2014-04-18avformat/replaygain: fix mixed declaration and statementMichael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-04-17Merge commit 'ae43c10e36197000de2f3cc99ea35727ce98a796'Michael Niedermayer
* commit 'ae43c10e36197000de2f3cc99ea35727ce98a796': replaygain: allow exporting already decoded replaygain values Merged-by: Michael Niedermayer <michaelni@gmx.at>
2014-04-17replaygain: allow exporting already decoded replaygain valuesAlessandro Ghedini
This adds a function to export raw replaygain values (i.e. in the (u)int32_t form). It first checks whether AV_PKT_DATA_REPLAYGAIN side data is present, in which case it does nothing. Signed-off-by: Anton Khirnov <anton@khirnov.net>
2014-04-04Merge commit '8542f9c4f17125d483c40c0c5723842f1c982f81'Michael Niedermayer
* commit '8542f9c4f17125d483c40c0c5723842f1c982f81': replaygain: correctly parse peak values Conflicts: libavutil/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
2014-04-04Merge commit '25b6837f7cacd691b19cbc12b9dad1ce84a318a1'Michael Niedermayer
* commit '25b6837f7cacd691b19cbc12b9dad1ce84a318a1': replaygain: fix gain sign decoding Merged-by: Michael Niedermayer <michaelni@gmx.at>
2014-04-04replaygain: remove unused variableMichael Niedermayer
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2014-04-04replaygain: correctly parse peak valuesAlessandro Ghedini
According to the ReplayGain spec, the peak amplitude may overflow and may result in peak amplitude values greater than 1.0 with psychoacoustically coded audio, such as MP3. Fully compliant decoders must allow peak overflows. Additionally, having peak values in the 0<->UINT32_MAX scale makes it more difficult for applications to actually use the peak values (e.g. when implementing clipping prevention) since values have to be rescaled down. This patch corrects the peak parsing by removing the rescaling of the decoded values between 0 and UINT32_MAX and the 1.0 upper limit. Signed-off-by: Anton Khirnov <anton@khirnov.net>
2014-04-04replaygain: fix gain sign decodingAlessandro Ghedini
The gain sign was incorrectly decoded: since the FFSIGN() macro treats 0 as negative, gain values starting with "0." were always decoded as negative. Signed-off-by: Anton Khirnov <anton@khirnov.net>
2014-03-30avformat/replaygain: remove unused variableMichael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-03-24Merge commit '5a7e35dd2351c30bab45177b9482cb8833a0ca78'Michael Niedermayer
* commit '5a7e35dd2351c30bab45177b9482cb8833a0ca78': Add replaygain side data type and code for parsing replaygain tags. Conflicts: libavcodec/avcodec.h libavcodec/version.h libavutil/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
2014-03-24Add replaygain side data type and code for parsing replaygain tags.Anton Khirnov