summaryrefslogtreecommitdiffstats
path: root/libswscale/swscale_internal.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-01-14 21:33:53 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2016-01-14 21:59:12 +0100
commiteb7802afefb7af4da50bc56818cdab9da07de7d0 (patch)
tree7640bd0e1cabe381f2e2313e10b33340ac01465c /libswscale/swscale_internal.h
parentb99f4987167946872bd7987164445b4d20f35c33 (diff)
downloadffmpeg-streaming-eb7802afefb7af4da50bc56818cdab9da07de7d0.zip
ffmpeg-streaming-eb7802afefb7af4da50bc56818cdab9da07de7d0.tar.gz
swscale/vscale: Check that 2 tap filters are bilinear before using bilinear code
Fixes: out of array reads Fixes: 07e8b9c5d348ccdf7add0f37de20cf6c/asan_heap-oob_27e8df7_6849_e56653f768070ec8cb52f587048444c2.mov Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libswscale/swscale_internal.h')
-rw-r--r--libswscale/swscale_internal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libswscale/swscale_internal.h b/libswscale/swscale_internal.h
index fa288bd..1e29ec3 100644
--- a/libswscale/swscale_internal.h
+++ b/libswscale/swscale_internal.h
@@ -398,6 +398,7 @@ typedef struct SwsContext {
uint8_t *chrMmxextFilterCode; ///< Runtime-generated MMXEXT horizontal fast bilinear scaler code for chroma planes.
int canMMXEXTBeUsed;
+ int warned_unuseable_bilinear;
int dstY; ///< Last destination vertical line output from last slice.
int flags; ///< Flags passed by the user to select scaler algorithm, optimizations, subsampling, etc...
OpenPOWER on IntegriCloud