video/converter: increase the number of cache lines for resampling
authorMatthew Waters <matthew@centricular.com>
Fri, 20 Nov 2020 05:51:09 +0000 (16:51 +1100)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 3 Dec 2020 06:39:09 +0000 (06:39 +0000)
commitd4ff62700d62e5de45cdb65f2899ee671c7666ae
tree761dd9e24caff3c8af85efa092ac1bcf68118a6c
parent831199a808938ed8a75d7eb476e57e56968f7860
video/converter: increase the number of cache lines for resampling

The exising hardcoded max default does not account for the possible
-1 offset when retrieving lines for resampling.  As a result, when
another chain has the same number of cache lines (4), the resample
operation would be attempting to generate 5 lines with a cache size
of 4 and would overwrite the first cache line.

Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/issues/821

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/938>
gst-libs/gst/video/video-converter.c