From ae43c10e36197000de2f3cc99ea35727ce98a796 Mon Sep 17 00:00:00 2001 From: Alessandro Ghedini Date: Sat, 12 Apr 2014 18:25:40 +0200 Subject: 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 --- libavformat/replaygain.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libavformat/replaygain.h') 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 */ -- cgit v1.2.3