[mythtv-commits] Ticket #850: Inaccuracies in audio timecode
calculations
MythTV
mythtv at cvs.mythtv.org
Wed Dec 21 10:05:56 EST 2005
#850: Inaccuracies in audio timecode calculations
-------------------------------------------+--------------------------------
Reporter: mythtv at dadeos.freeserve.co.uk | Owner: ijr
Type: defect | Status: new
Priority: minor | Milestone:
Component: mythtv | Version:
Severity: medium |
-------------------------------------------+--------------------------------
The existing audio code accumulates the timecode (in milliseconds) , this
approach is insufficiently accurate as the rounding errors also accumulate
over time. This most obviously manifests itself as the elapsed time in
MythMusic for a 44.1kHz track doesn't match the overall track length at
the end of the track playback. But would almost certainly cause all sorts
of havoc for video streams with audio sample rates that don't divide
nicely into an integer number of milliseconds for the block sizes used.
The attached patch stores the position in bytes (as opposed to
milliseconds) thus eliminating the rounding errors.
<This is my first patch, so I hope that it's the correct format etc. ;-)>
--
Ticket URL: <http://cvs.mythtv.org/trac/ticket/850>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list