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

add support for CC 608/708 when there are multiple payloads inside sei packet #488

Merged
merged 3 commits into from
Mar 9, 2016

Conversation

steve6
Copy link
Contributor

@steve6 steve6 commented Feb 12, 2016

  • add support for CC 608/708 when there are multiple payloads inside sei packet
  • unescape ‘Emulation Prevention' bytes into sei packet

Test stream: http://demo.deltatre.it/cc-test/QualityLevels(1400000)/Manifest(video,format=m3u8-aapl).m3u8

unescape ‘Emulation Prevention' bytes for sei packet
@mangui
Copy link
Owner

mangui commented Feb 15, 2016

thanks @steve6

@@ -12,6 +12,8 @@
/** Constants and utilities for the H264 video format. **/
public class Nalu {

private static var scratchEscapePositions:Array = new Array(10);
Copy link
Owner

Choose a reason for hiding this comment

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

scratchEscapePositions is only used in unescapeStream(), IMHO it would be better to move it there as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, sounds better. Now is inside method.

// Grow scratchEscapePositions to hold a larger number of positions.
scratchEscapePositions = scratchEscapePositions.concat(new Array(10));
}
scratchEscapePositions[scratchEscapeCount++] = position;
Copy link
Owner

Choose a reason for hiding this comment

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

you could use scratchEscapePositions.push(position), it will automatically adjust array length in case you exceed initial size

@zuzzurro
Copy link

Hi @mangui. Is there anything else that needs to be done for the patch to be included?

mangui added a commit that referenced this pull request Mar 9, 2016
add support for CC 608/708 when there are multiple payloads inside sei packet
@mangui mangui merged commit 7168b97 into mangui:dev Mar 9, 2016
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