[FFmpeg-devel] [PATCH 12/12] lavd/pulse_audio_enc: replace lround by lrint
Ganesh Ajjanagadde
gajjanagadde at gmail.com
Sat Dec 19 06:45:38 CET 2015
Here it is mostly a cosmetic change, but there might be benefits in that
there are no compat hacks for lround, while there are for lrint.
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>
---
libavdevice/pulse_audio_enc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavdevice/pulse_audio_enc.c b/libavdevice/pulse_audio_enc.c
index bc4d1f0..d8501e3 100644
--- a/libavdevice/pulse_audio_enc.c
+++ b/libavdevice/pulse_audio_enc.c
@@ -333,7 +333,7 @@ static int pulse_set_volume(PulseData *s, double volume)
pa_volume_t vol;
const pa_sample_spec *ss = pa_stream_get_sample_spec(s->stream);
- vol = pa_sw_volume_multiply(lround(volume * PA_VOLUME_NORM), s->base_volume);
+ vol = pa_sw_volume_multiply(lrint(volume * PA_VOLUME_NORM), s->base_volume);
pa_cvolume_set(&cvol, ss->channels, PA_VOLUME_NORM);
pa_sw_cvolume_multiply_scalar(&cvol, &cvol, vol);
pa_threaded_mainloop_lock(s->mainloop);
--
2.6.4
More information about the ffmpeg-devel
mailing list