summaryrefslogtreecommitdiffstats
path: root/gst/id3demux/id3v2frames.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/id3demux/id3v2frames.c')
-rw-r--r--gst/id3demux/id3v2frames.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/id3demux/id3v2frames.c b/gst/id3demux/id3v2frames.c
index 8e1ee048..cf56f8bd 100644
--- a/gst/id3demux/id3v2frames.c
+++ b/gst/id3demux/id3v2frames.c
@@ -408,7 +408,8 @@ parse_relative_volume_adjustment_two (ID3TagsWorking * work)
}
peak = peak << (64 - GST_ROUND_UP_8 (peak_bits));
- peak_val = (gdouble) peak / gst_util_guint64_to_gdouble (G_MAXINT64);
+ peak_val =
+ gst_guint64_to_gdouble (peak) / gst_util_guint64_to_gdouble (G_MAXINT64);
GST_LOG ("RVA2 frame: id=%s, chan=%u, adj=%.2fdB, peak_bits=%u, peak=%.2f",
id, chan, gain_dB, (guint) peak_bits, peak_val);