diff options
Diffstat (limited to 'src/codecs/mad.cpp')
| -rw-r--r-- | src/codecs/mad.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/codecs/mad.cpp b/src/codecs/mad.cpp index ce3a9cac..dfa568d4 100644 --- a/src/codecs/mad.cpp +++ b/src/codecs/mad.cpp @@ -92,7 +92,7 @@ auto MadMp3Decoder::OpenStream(std::shared_ptr<IStream> input) auto vbr_length = GetVbrLength(header); if (vbr_length) { - output.duration_seconds = vbr_length; + output.total_samples = vbr_length; } return output; } @@ -234,7 +234,7 @@ auto MadMp3Decoder::GetVbrLength(const mad_header& header) return {}; } - return (double)(frames_count * samples_per_frame) / header.samplerate; + return (double)(frames_count * samples_per_frame); } } // namespace codecs |
