Skip to content

Fix #3608 MEDIA.BUFFER_READ_OUT_OF_BOUNDS error when CEA caption packets are empty#3609

Merged
joeyparrish merged 1 commit intoshaka-project:masterfrom
caridley:HandleEmptyCaptionPackets
Sep 9, 2021
Merged

Fix #3608 MEDIA.BUFFER_READ_OUT_OF_BOUNDS error when CEA caption packets are empty#3609
joeyparrish merged 1 commit intoshaka-project:masterfrom
caridley:HandleEmptyCaptionPackets

Conversation

@caridley
Copy link
Contributor

Description

Fixes #3608
Added check for empty caption packets in closed_caption_parser.
Added a unit test that verifies the closed_caption_parser now works with a video segment that contains empty caption packets.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to
    not work as expected)
  • This change requires a documentation update

Checklist:

  • I have signed the Google CLA https://cla.developers.google.com
  • My code follows the style guidelines of this project
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • I have verified my change on multiple browsers on different platforms
  • I have run ./build/all.py and the build passes
  • I have run ./build/test.py and all tests pass

… caption packets are empty

Added check for empty caption packets in closed_caption_parser.

Added a unit test that verifies the closed_caption_parser now works with a video segment that contains empty caption packets.
@avelad
Copy link
Member

avelad commented Sep 9, 2021

@joeyparrish can you review it? I'm very interested on it.

@joeyparrish
Copy link
Member

Approved, waiting for bot to run tests

@shaka-bot
Copy link
Collaborator

All tests passed!

@joeyparrish joeyparrish merged commit 97ba4df into shaka-project:master Sep 9, 2021
joeyparrish pushed a commit that referenced this pull request Oct 12, 2021
…s are empty (#3609)

Added check for empty caption packets in closed_caption_parser.

Added a unit test that verifies the closed_caption_parser now works with a video segment that contains empty caption packets.

Fixes #3608
joeyparrish pushed a commit that referenced this pull request Oct 12, 2021
…s are empty (#3609)

Added check for empty caption packets in closed_caption_parser.

Added a unit test that verifies the closed_caption_parser now works with a video segment that contains empty caption packets.

Fixes #3608
@github-actions github-actions bot added the status: archived Archived and locked; will not be updated label Jul 25, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

status: archived Archived and locked; will not be updated

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MEDIA.BUFFER_READ_OUT_OF_BOUNDS error when CEA caption packets are empty

4 participants