You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-06 06:27:36 +02:00
lavfi/lut3d: avoid overread.
This commit is contained in:
@ -94,7 +94,7 @@ static inline struct rgbvec lerp(const struct rgbvec *v0, const struct rgbvec *v
|
|||||||
|
|
||||||
#define NEAR(x) ((int)((x) + .5))
|
#define NEAR(x) ((int)((x) + .5))
|
||||||
#define PREV(x) ((int)(x))
|
#define PREV(x) ((int)(x))
|
||||||
#define NEXT(x) ((int)(x) + 1)
|
#define NEXT(x) (FFMIN((int)(x) + 1, lut3d->lutsize - 1))
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the nearest defined point
|
* Get the nearest defined point
|
||||||
|
Reference in New Issue
Block a user