OSDN Git Service

hevc: Remove useless clip
authorGuillaume Martres <smarter@ubuntu.com>
Sat, 11 Jan 2014 21:46:25 +0000 (22:46 +0100)
committerLuca Barbato <lu_zero@gentoo.org>
Tue, 21 Jan 2014 10:58:52 +0000 (11:58 +0100)
commitfaf03ecba03155bb1f5416713bd01da043863b43
treec599e411b308a2485bebfa9022508166e6835838
parenta246d06fe0dc6c2ea65e95327624b4537ff9bd0d
hevc: Remove useless clip

The src buffer should only contain values in the interval
[0, (1 << BIT_DEPTH) - 1].

Since shift = (BIT_DEPTH - 5), src[x] >> shift must be in
the interval [0, 31], so no clip is needed.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavcodec/hevcdsp_template.c