Opened 4 years ago

Last modified 4 months ago

#16581 new bug

BMediaTrack::Duration() calculation incorrect for large audio files (AAC)

Reported by: smallstepforman Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: Kits/Media Kit Version: R1/beta2
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

I have a 1h:29:7s:180ms audio file. AAC decoder, 2 channels BMediaTrack::CountFrames() returns 256664576 samples raw_audio.frame_rate = 48000 BMediaTrack::Duration() returns 5347180000 If you divide CountFrames()/frame_rate (and multiply *1,000,000), you get 5347178666.6667 Duration is longer by 1334 (1.334ms)

hrev54662 (20 Oct 2020)

Change History (1)

comment:1 by waddlesplash, 4 months ago

This may also be fixed after hrev57642.

Note: See TracTickets for help on using tickets.