Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VIDEO: Fix QuickTime regression with mediaTime and dithering
Fixes an error when playing a QuickTime video in Director that has a mediaTime set on its first edit. This was a caused by mediaTime changes in: ef184a6 Those changes buffered frames during initialization so that the keyframe and other frames don't play instead of the intended start frame that mediaTime specifies. My mistake was that decoding isn't allowed during VideoDecoder::loadStream(); VideoDecoder::setDitheringPalette() requires that no frames have been decoded yet, and Director calls that. The Director game Chop Suey begins with a QuickTime video that sets mediaTime on its first edit and that exposed this bug with an error(). Now the initial mediaTime buffering is delayed until the first decode.
- Loading branch information
Showing
2 changed files
with
28 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters