-
Notifications
You must be signed in to change notification settings - Fork 264
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
Conversation
unescape ‘Emulation Prevention' bytes for sei packet
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); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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
Hi @mangui. Is there anything else that needs to be done for the patch to be included? |
add support for CC 608/708 when there are multiple payloads inside sei packet
Test stream: http://demo.deltatre.it/cc-test/QualityLevels(1400000)/Manifest(video,format=m3u8-aapl).m3u8