Comcast / mamba

Mamba is a Swift iOS, tvOS and macOS framework to parse, validate and write HTTP Live Streaming (HLS) data.
Apache License 2.0
182 stars 40 forks source link

Setting the EXT-X-TARGETDURATION tag validator to be less strict to be in line with the HLS Pantos Specification #10

Closed dcoufal closed 6 years ago

dcoufal commented 6 years ago

Description

This PR fixes a bug where the EXT-X-TARGETDURATION tag validator is too strict. If the EXT-X-TARGETDURATION tag is set to "6", and the fragments are "6.006" this is actually correct from the HLS spec (section 4.3.3.1, https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#page-21).

The previous code would have failed this.

Change Notes

Pre-submission Checklist