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

DVDFileInfo: Consult av_image_get_buffer_size before allocating #18945

Merged
merged 1 commit into from
Dec 21, 2020

Conversation

fritsch
Copy link
Member

@fritsch fritsch commented Dec 17, 2020

As we have intrinsics in use and sws_scale needs proper alignment and
proper dimensions, we not only shall continue to use av_malloc but
also properly align the buffer size to not write out of the picture.

Fixes: #18935

@fritsch fritsch added Type: Fix non-breaking change which fixes an issue v19 Matrix labels Dec 17, 2020
@fritsch fritsch added this to the Matrix 19.0-RC1 milestone Dec 17, 2020
@fritsch
Copy link
Member Author

fritsch commented Dec 17, 2020

@malaterre This should be the proper way of doing it.

@fritsch fritsch mentioned this pull request Dec 18, 2020
7 tasks
@fuzzard
Copy link
Contributor

fuzzard commented Dec 19, 2020

Jenkins build this please

xbmc/cores/VideoPlayer/DVDFileInfo.cpp Outdated Show resolved Hide resolved
As we have intrinsics in use and sws_scale needs proper alignment and
proper dimensions, we not only shall continue to use av_malloc but
also make sure that size / Height % 16 == 0.
@fritsch
Copy link
Member Author

fritsch commented Dec 21, 2020

Thanks much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Fix non-breaking change which fixes an issue v19 Matrix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CDVDFileInfo::ExtractThumb
3 participants