Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

manifest: add DISCONTINUITY tags to clip playlist #904

Merged
merged 1 commit into from
Oct 6, 2023

Conversation

emranemran
Copy link
Collaborator

A discontinuity tag is required in the clip playlist so that it shows the correct duration.

A discontinuity tag is required in the clip playlist so that
it shows the correct duration.
@emranemran emranemran requested review from thomshutt and mjh1 October 6, 2023 21:08
@codecov
Copy link

codecov bot commented Oct 6, 2023

Codecov Report

Merging #904 (81f9837) into main (49a28c3) will increase coverage by 0.19429%.
The diff coverage is 28.57143%.

Impacted file tree graph

@@                 Coverage Diff                 @@
##                main        #904         +/-   ##
===================================================
+ Coverage   50.95253%   51.14682%   +0.19429%     
===================================================
  Files             63          63                 
  Lines           6404        6409          +5     
===================================================
+ Hits            3263        3278         +15     
+ Misses          2874        2864         -10     
  Partials         267         267                 
Files Coverage Δ
transcode/transcode.go 37.30964% <100.00000%> (ø)
clients/manifest.go 42.34875% <16.66667%> (-0.76719%) ⬇️

... and 1 file with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 49a28c3...81f9837. Read the comment docs.

Files Coverage Δ
transcode/transcode.go 37.30964% <100.00000%> (ø)
clients/manifest.go 42.34875% <16.66667%> (-0.76719%) ⬇️

... and 1 file with indirect coverage changes

@emranemran emranemran requested a review from 0xcadams October 6, 2023 21:18
Copy link
Contributor

@0xcadams 0xcadams left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, retro review from Thom/Max

@emranemran emranemran merged commit 88f85bc into main Oct 6, 2023
12 checks passed
@emranemran emranemran deleted the emran/add-clip-disc branch October 6, 2023 22:05
if isClip {
_, totalSegs := video.GetTotalDurationAndSegments(renditionPlaylist)
renditionPlaylist.Segments[1].Discontinuity = true
renditionPlaylist.Segments[totalSegs-1].Discontinuity = true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will we get an Array Out Of Bounds for a single segment clip? Possibly not because of the weird array preallocation stuff of the playlist library, but probably good to guard against anyway

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup exactly what we ran into. Fixed here: dd52162

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants