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

fix: Fix failure on very short WebVTT files #1216

Merged
merged 1 commit into from
Jul 12, 2023

Conversation

x-projs
Copy link
Contributor

@x-projs x-projs commented Jun 8, 2023

Fix a bug that if the webvtt file is very short, e.g. only contains one block

WEBVTT

00:00:00.500 --> 00:00:02.000
The Web is always changing

shaka packager will report error: "Packaging Error: 6 (END_OF_STREAM)".

Fixes #1217

…ne block:

    WEBVTT

    00:00:00.500 --> 00:00:02.000
    The Web is always changing

shaka packager will report error: "Packaging Error: 6 (END_OF_STREAM)".

Fix:
In Demuxer::InitializeParser(), if eof is reaching, invoke parser_->Flush() to
flash the parser.
@google-cla
Copy link

google-cla bot commented Jun 8, 2023

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@joeyparrish joeyparrish changed the title Fix a bug that if the webvtt file is very short, e.g. only contains one block fix: Fix failure on very short WebVTT files Jul 5, 2023
@joeyparrish joeyparrish added the type: bug Something isn't working correctly label Jul 5, 2023
Copy link
Member

@joeyparrish joeyparrish left a comment

Choose a reason for hiding this comment

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

@xieyubo, there are a bunch of test failures. Please fix these.

@joeyparrish joeyparrish added the status: waiting on response Waiting on a response from the reporter(s) of the issue label Jul 5, 2023
@joeyparrish
Copy link
Member

I believe the test failures on Linux are those fixed by #1226, and the Windows and Mac failures are aging build systems and scripts which are all being replaced in the cmake branch. Merging as-is.

@joeyparrish joeyparrish removed the status: waiting on response Waiting on a response from the reporter(s) of the issue label Jul 12, 2023
@joeyparrish joeyparrish merged commit dab165d into shaka-project:main Jul 12, 2023
5 of 22 checks passed
@x-projs x-projs deleted the fix branch August 2, 2023 18:23
@github-actions github-actions bot added the status: archived Archived and locked; will not be updated label Sep 10, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 10, 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 type: bug Something isn't working correctly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Processing small web VTT results in END_OF_STREAM error if there is no empty line at end.
3 participants