Skip to content

Dash cut#11

Merged
elv-reza merged 4 commits intoelv-release-4.4from
dash-cut
Nov 22, 2024
Merged

Dash cut#11
elv-reza merged 4 commits intoelv-release-4.4from
dash-cut

Conversation

@elv-reza
Copy link
Copy Markdown
Contributor

Comment thread libavformat/dashenc.c Outdated
Comment on lines +2420 to +2422
if (frame_duration_variation >= pkt->duration)
frame_duration_variation = pkt->duration - 1;
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

In the case packet durations are 1501, 1502, this risks to be equal to the shorter frame (1501).

I think a safer option is (pkt->duration / 2 + 1)
Or (pkg->duration - 2)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The key is not going beyond packet duration. The half + one also works.

@elv-reza elv-reza merged commit 62b5056 into elv-release-4.4 Nov 22, 2024
@elv-reza elv-reza deleted the dash-cut branch November 22, 2024 23:29
elv-peter pushed a commit that referenced this pull request Jul 23, 2025
* Fix an issue cutting dash segments when there is PTS jumps in the source
elv-serban pushed a commit that referenced this pull request Feb 23, 2026
* Fix an issue cutting dash segments when there is PTS jumps in the source
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.

2 participants