diff options
author | Alessandro Ghedini <alessandro@ghedini.me> | 2014-04-12 18:25:40 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2014-04-17 20:08:19 +0200 |
commit | ae43c10e36197000de2f3cc99ea35727ce98a796 (patch) | |
tree | af9b998f29df0cd41908d213e9a04ae3a2ab3e86 /libavformat/replaygain.h | |
parent | 21d8f4da91673051ad7055cf63d989488a56368e (diff) | |
download | ffmpeg-ae43c10e36197000de2f3cc99ea35727ce98a796.tar.gz |
replaygain: allow exporting already decoded replaygain values
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>
Diffstat (limited to 'libavformat/replaygain.h')
-rw-r--r-- | libavformat/replaygain.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libavformat/replaygain.h b/libavformat/replaygain.h index 641b7a299b..ea56c17f06 100644 --- a/libavformat/replaygain.h +++ b/libavformat/replaygain.h @@ -28,4 +28,11 @@ */ int ff_replaygain_export(AVStream *st, AVDictionary *metadata); + +/** + * Export already decoded replaygain values as per-stream side data. + */ +int ff_replaygain_export_raw(AVStream *st, int32_t tg, uint32_t tp, + int32_t ag, uint32_t ap); + #endif /* AVFORMAT_REPLAYGAIN_H */ |