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 renderFrame logic in PassthroughSoftwareRenderer #103

Conversation

Ma7moudHatem
Copy link
Contributor

  1. Fix an issue in renderFrame() method inside PassthroughSoftwareRenderer class, where it throws a BufferOverflowException when the InputBuffer's size is larger than the OutputBuffer's size.
  2. Add a try-catch to some release() methods, where it's safe to catch the exception and not throw it, also to not make wrong behavior where the onError method of TransformationListener will not be called.
  3. This pull request will fix the opened issue in litr, Failed to transcode some video files #102

…erer class, where it throw a BufferOverflowException when the InputBuffer's size is larger than the OutputBuffer's size
… the exception and not throw it, also to not make wrong behaviour where the onError method of TransformationListener will not be called
Copy link
Contributor

@izzytwosheds izzytwosheds left a comment

Choose a reason for hiding this comment

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

Please add unit tests for new logic in PassthroughSoftwareRendererShould, it should be very straightforward.

@izzytwosheds izzytwosheds merged commit b08f349 into linkedin:main Mar 10, 2021
@Ma7moudHatem Ma7moudHatem deleted the fix-render-frame-logic-in-passthrough-renderer branch March 15, 2021 08:41
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.

2 participants