Browse Source

lavfi/lut3d: avoid overread.

tags/n2.0
Clément Bœsch 12 years ago
parent
commit
91b461459a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavfilter/vf_lut3d.c

+ 1
- 1
libavfilter/vf_lut3d.c View File

@@ -94,7 +94,7 @@ static inline struct rgbvec lerp(const struct rgbvec *v0, const struct rgbvec *v

#define NEAR(x) ((int)((x) + .5))
#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


Loading…
Cancel
Save