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

Update Transcoder.java #1414

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

william00179
Copy link

If reading a compressed frame the padding will always be negative and do nothing in the skipFully function because of the negative padding check.

This is unless the compressed size is actually larger than the uncompressed size (due to bad compression algo selection) and then this will result in a positive number and cause an EOF Exception.

We should only skip if the frame hasn't been decompressed.

Resolves #1411

If reading a compressed frame the padding will always be negative and do nothing in the skipFully function because of the negative padding check. 

This is unless the compressed size is actually larger than the uncompressed size (due to bad compression algo selection) and then this will result in a positive number and cause an EOF Exception.

We should only skip if the  frame hasn't been decompressed.
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.

EOFException on transcoding of compressed image that is larger when compressed than uncompressed
1 participant