Skip to content

VPAAMP-733 GetStreamFormat() wrong for HLS-TS when useMp4Demux=true#1705

Merged
pstroffolino merged 3 commits into
dev_sprint_25_2from
feature/VPAAMP-733
Jul 9, 2026
Merged

VPAAMP-733 GetStreamFormat() wrong for HLS-TS when useMp4Demux=true#1705
pstroffolino merged 3 commits into
dev_sprint_25_2from
feature/VPAAMP-733

Conversation

@jfagunde

@jfagunde jfagunde commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Reason for Change: GetStreamFormat() returns wrong A/V format for HLS-TS
when useMp4Demux=true

Summary of Changes:

  • For HLS, only set format to UNKNOWN if Mp4Demux is used for fMP4
  • Add L1 tests to verify the change

Test Procedure: Run L1 tests

Priority: P1

Risks: Low

Reason for Change: GetStreamFormat() returns wrong A/V format for HLS-TS
                   when useMp4Demux=true

Summary of Changes:
- Move return UNKNOWN format to PrivAamp from StreamAbstraction
- Extend GetStreamFormat L1 tests to verify the change

Test Procedure: Run L1 tests

Priority: P1

Risks: Low
@jfagunde jfagunde requested a review from a team as a code owner July 8, 2026 15:52
Comment thread priv_aamp.cpp Outdated
@pstroffolino pstroffolino merged commit 58e2c9e into dev_sprint_25_2 Jul 9, 2026
9 checks passed
@pstroffolino pstroffolino deleted the feature/VPAAMP-733 branch July 9, 2026 12:58
@pstroffolino pstroffolino requested a review from Copilot July 9, 2026 12:58

Copilot AI left a comment

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.

Pull request overview

Fixes incorrect stream format reporting for HLS-TS when UseMp4Demux is enabled by limiting the “unknown until init fragment parsed” behavior to fMP4 HLS. This aligns StreamAbstractionAAMP_HLS::GetStreamFormat() with how Mp4Demux is intended to behave in the HLS pipeline.

Changes:

  • Update HLS GetStreamFormat() to set A/V formats to FORMAT_UNKNOWN only when UseMp4Demux is enabled and the media format is eMEDIAFORMAT_HLS_MP4.
  • Add L1 tests covering both fMP4 HLS and TS HLS cases when UseMp4Demux is enabled.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
fragmentcollector_hls.cpp Restricts the FORMAT_UNKNOWN override to HLS fMP4 only, preserving correct TS formats.
test/utests/tests/StreamAbstractionAAMP_HLS/FunctionalTests.cpp Adds unit tests validating the updated GetStreamFormat() behavior for fMP4 vs TS under UseMp4Demux.

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.

5 participants