shithub: opus-tools

Download patch

ref: d041570011c7cfb3603294335eb9e9d08144caa7
parent: f3f17fa6f8fa33e500aaf60eb5da7c14630ecc28
author: Gregory Maxwell <[email protected]>
date: Mon May 28 22:11:04 EDT 2012

opusinfo, correct conversion of headergain into dB.

--- a/src/info_opus.c
+++ b/src/info_opus.c
@@ -277,7 +277,7 @@
         if(inf->max_page_duration>=240000)
            oi_warn(_("\tWARNING: stream %d has high muxing delay\n"),stream->num);
         oi_info(_("\tPre-skip: %d\n"),inf->oh.preskip);
-        oi_info(_("\tPlayback gain: %0.1gdB\n"),inf->oh.gain*256.);
+        oi_info(_("\tPlayback gain: %gdB\n"),inf->oh.gain/256.);
         oi_info(_("\tChannels: %d\n"),inf->oh.channels);
         if(inf->oh.input_sample_rate)oi_info(_("\tOriginal sample rate: %dHz\n"),inf->oh.input_sample_rate);
         if(inf->oh.nb_streams>1)oi_info(_("\tStreams: %d, Coupled: %d\n"),inf->oh.nb_streams,inf->oh.nb_coupled);