From aaab192df24a90f4450285cfb73b395cf495b462 Mon Sep 17 00:00:00 2001 From: Alessandro Ghedini Date: Sun, 6 Apr 2014 16:25:08 +0200 Subject: af_volume: implement replaygain clipping prevention This adds a new "replaygain_noclip" option to the filter, and, if enabled, limits the gain applied for tracks where clipping would occur. Signed-off-by: Anton Khirnov --- libavfilter/af_volume.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libavfilter/af_volume.h') diff --git a/libavfilter/af_volume.h b/libavfilter/af_volume.h index d831ec4a3d..6bd89acc4d 100644 --- a/libavfilter/af_volume.h +++ b/libavfilter/af_volume.h @@ -48,6 +48,7 @@ typedef struct VolumeContext { enum PrecisionType precision; enum ReplayGainType replaygain; double replaygain_preamp; + int replaygain_noclip; double volume; int volume_i; int channels; -- cgit v1.2.3