mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1052206 - Add Fuzz r=kinetik
This commit is contained in:
parent
d23fbb7282
commit
df6320c01a
@ -25,6 +25,9 @@ extern PRLogModuleInfo* gMediaDecoderLog;
|
||||
#define SINK_LOG_V(msg, ...)
|
||||
#endif
|
||||
|
||||
// The amount of audio frames that is used to fuzz rounding errors.
|
||||
static const int64_t AUDIO_FUZZ_FRAMES = 1;
|
||||
|
||||
AudioSink::AudioSink(MediaDecoderStateMachine* aStateMachine,
|
||||
int64_t aStartTime, AudioInfo aInfo, dom::AudioChannel aChannel)
|
||||
: mStateMachine(aStateMachine)
|
||||
@ -162,7 +165,7 @@ AudioSink::AudioLoop()
|
||||
break;
|
||||
}
|
||||
|
||||
if (missingFrames.value() > 0) {
|
||||
if (missingFrames.value() > AUDIO_FUZZ_FRAMES) {
|
||||
// The next audio chunk begins some time after the end of the last chunk
|
||||
// we pushed to the audio hardware. We must push silence into the audio
|
||||
// hardware so that the next audio chunk begins playback at the correct
|
||||
|
Loading…
Reference in New Issue
Block a user