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>
Sun, 6 May 2012 19:40:58 +0000 (21:40 +0200)
commit50073e2395522b6e2b8698ff0dd06ffaf8cbf8ce
treefe2816c046b32c32bdf6c673bea072f39bf36c4b
parent3fc967f6c7ab2a21e9e4cca93487286b431cd64a
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>
(cherry picked from commit aaa6a666774eb02c351c84e80622a5c69e9b642e)

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