Closed Bug 759399 Opened 12 years ago Closed 12 years ago

nsOggReader preroll support

Categories

(Core :: Audio/Video, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla15

People

(Reporter: rillian, Assigned: derf)

References

Details

Attachments

(1 file)

The Opus decoder requires some time to converge after a seek. The spec recommends players start decoding 80 ms (3840 samples at 48 kHz) before the intended seek target and discard that initial output.

This is generally referred to as 'preroll'. It makes the most sense to handle this in nsOggReader (or nsBuiltinDecoder) where seeking is implemented. In particular, the preroll target must be clipped against the start of the stream, the time origen, or even buffered ranges, and the Reader is what's keeping track of where the decoder is in the stream.

This bug is about extending the seek logic in nsOggReader to start the decoder 80 ms ahead of the seek target. The existing logic in nsBuiltinDecoderReader::DecodeToTarget will then discard the extra samples up to the real seek point.
Depends on: 759490
Assignee: nobody → tterribe
Status: NEW → ASSIGNED
Attachment #628098 - Flags: review?(chris.double)
Blocks: 759612
Depends on: 674225
Attachment #628098 - Flags: review?(chris.double) → review+
https://hg.mozilla.org/mozilla-central/rev/a8b7fca9d4bb
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: