motionpixels: Clip YUV values after applying a gradient.
authorAlex Converse <alex.converse@gmail.com>
Wed, 2 May 2012 19:08:03 +0000 (12:08 -0700)
committerReinhard Tartler <siretart@tauware.de>
Fri, 4 May 2012 20:09:27 +0000 (22:09 +0200)
commitaaa6a666774eb02c351c84e80622a5c69e9b642e
tree730952efaa9cdc47e4aec2c04d6235441d955988
parent7240cc3f8b8798dfbb5d1adda7afb53dc0c871c1
motionpixels: Clip YUV values after applying a gradient.

Prevents illegal reads on truncated and malformed input.

CC: libav-stable@libav.org
(cherry picked from commit b5da848facd41169283d7bfe568b83bdfa7fc42e)

Signed-off-by: Reinhard Tartler <siretart@tauware.de>
libavcodec/motionpixels.c