1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-24 13:56:33 +02:00
FFmpeg/libavcodec
Janne Grunau 7f1e209028 aarch64: vp9mc: Load only 12 pixels in the 4 pixel wide horizontal filter
This reduces the amount the horizontal filters read beyond the filter
width to a consistent 1 pixel. The data is not used so this is usually
not noticeable. It becomes a problem when the application allocates
frame buffers only for the aligned picture size and the end of it is at
a page boundary. This happens for picture sizes which are a multiple of
the page size like 1280x640. The frame buffer allocation is based on
its most likely done via mmap + MAP_ANONYMOUS so start and end of the
buffer are page aligned and the previous and next page are not
necessarily mapped.
Under these conditions like seen by Firefox a read beyond the end of the
buffer results in a segfault.
After the over-read is reduced to a single pixel it's reasonable to use
VP9's emulated edge motion compensation for this.

Fixes: https://bugzilla.mozilla.org/show_bug.cgi?id=1881185
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit 430c38f698a65d597e863330810b05e083682be6)
2025-01-04 07:31:16 -05:00
..
2024-03-15 12:51:15 +01:00
2024-07-25 20:34:29 +02:00
2024-07-25 20:36:19 +02:00
2024-03-25 08:54:18 +01:00
2024-03-15 12:51:15 +01:00
2024-03-15 12:51:15 +01:00
2024-05-22 22:04:29 +02:00
2024-07-25 20:34:34 +02:00
2024-03-15 12:51:15 +01:00
2024-03-15 12:51:15 +01:00
2024-03-15 12:51:15 +01:00
2024-07-25 20:34:34 +02:00
2024-03-15 12:51:15 +01:00
2024-05-22 22:04:40 +02:00
2024-05-22 22:04:39 +02:00
2024-07-25 20:36:22 +02:00
2024-03-15 12:51:15 +01:00
2024-03-15 12:51:15 +01:00
2024-07-25 20:34:35 +02:00
2024-07-25 20:34:06 +02:00
2024-07-25 20:34:35 +02:00
2024-03-12 14:37:49 +01:00
2024-07-25 20:34:37 +02:00
2024-03-15 12:51:15 +01:00
2024-03-15 12:51:15 +01:00
2024-03-15 12:51:15 +01:00
2024-06-24 00:10:37 +02:00
2024-03-26 23:19:49 +01:00
2024-03-12 14:37:49 +01:00
2024-03-27 01:04:53 +01:00
2024-05-22 22:04:41 +02:00
2024-07-25 20:34:06 +02:00