summaryrefslogtreecommitdiff
path: root/libavformat/replaygain.c
Commit message (Collapse)AuthorAge
* avformat: expose av_stream_new_side_data helperJohn Stebbins2015-11-18
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavf: add a convenience function for adding side data to a streamAnton Khirnov2015-01-27
|
* replaygain: allow exporting already decoded replaygain valuesAlessandro Ghedini2014-04-17
| | | | | | | | 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>
* replaygain: remove unused variableMichael Niedermayer2014-04-04
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* replaygain: correctly parse peak valuesAlessandro Ghedini2014-04-04
| | | | | | | | | | | | | | | 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>
* replaygain: fix gain sign decodingAlessandro Ghedini2014-04-04
| | | | | | | 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>
* Add replaygain side data type and code for parsing replaygain tags.Anton Khirnov2014-03-24