#16600: Very Short WAV files crash MediaPlayer (divide error)
---------------------------------------+----------------------------
Reporter: humdinger | Owner: stippi
Type: bug | Status: new
Priority: normal | Milestone: Unscheduled
Component: Applications/MediaPlayer | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking: 13352
Platform: All |
---------------------------------------+----------------------------
Comment (by madmax):
For reference: [https://git.haiku-
os.org/haiku/tree/src/apps/mediaplayer/Controller.cpp#n1104
Controller::_FrameDuration]: "Here for example, it will return a duration
of 0 if the audio clip happens to be shorter than one video frame at 25
fps", and that's used as divisor in some places, like _TimePosition in
your crash.
--
Ticket URL: <https://dev.haiku-os.org/ticket/16600#comment:2>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.