VPAAMP-1121: Handle partial-ad fallback in UpdateStartTimeOfFirstPTS - #1940
Open
srikanthreddybijjam-comcast wants to merge 1 commit into
Open
VPAAMP-1121: Handle partial-ad fallback in UpdateStartTimeOfFirstPTS#1940srikanthreddybijjam-comcast wants to merge 1 commit into
srikanthreddybijjam-comcast wants to merge 1 commit into
Conversation
Copilot started reviewing on behalf of
srikanthreddybijjam-comcast
September 2, 2026 05:01
View session
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The new partial-ad fallback branch lacks corresponding unit-test coverage and also removes the prior non-ad fallback log signal when mBasePeriodOffset is not applied.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Updates DASH (MPD) stream handling in StreamAbstractionAAMP_MPD::UpdateStartTimeOfFirstPTS() to better handle CDAI partial-ad fallback scenarios by offsetting the computed first-PTS start time.
Changes:
- Add
mBasePeriodOffset(seconds) tomStartTimeOfFirstPTS(ms) when ad start time is unavailable (partial-ad fallback path). - Add an INFO log when the base-period offset fallback is applied.
File summaries
| File | Description |
|---|---|
| fragmentcollector_mpd.cpp | Adjusts mStartTimeOfFirstPTS calculation for partial-ad fallback using mBasePeriodOffset. |
Review details
Suppressed comments (1)
fragmentcollector_mpd.cpp:10413
- The previous warning log for the non-ad path was removed; when
adStartTimeSec < 0andmBasePeriodOffset <= 0this now becomes silent, which reduces observability when adPeriodOffset/ad timing is not available. Consider keeping a log for the "no ad start time" fallback when the base-period offset is not applied.
if (mBasePeriodOffset > 0)
{
mStartTimeOfFirstPTS += (mBasePeriodOffset * 1000.0);
AAMPLOG_INFO("UpdateStartTimeOfFirstPTS (partial ad fallback): +mBasePeriodOffset=%lf sec : mStartTimeOfFirstPTS=%.0f ms",
mBasePeriodOffset, mStartTimeOfFirstPTS);
- Files reviewed: 1/1 changed files
- Comments generated: 1
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
srikanthreddybijjam-comcast
force-pushed
the
feature/VPAAMP-1121
branch
2 times, most recently
from
September 2, 2026 11:26
e491c0d to
25cb570
Compare
Reason for change: Added mBaseperiodOffset to mStartTimeOfFirstPTS for a partial ad Test Procedure: Refer jira ticket VPAAMP-1121 Priority: P1 Signed-off-by: srikanthreddybijjam-comcast <[email protected]>
srikanthreddybijjam-comcast
force-pushed
the
feature/VPAAMP-1121
branch
from
September 2, 2026 14:45
25cb570 to
b5fa733
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reason for change: Added mBaseperiodOffset to mStartTimeOfFirstPTS for a partial ad
Test Procedure: Refer jira ticket VPAAMP-1121
Priority: P1