avcodec/cavsdsp: use av_clip_uint8() for idct
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 19 Sep 2016 13:25:38 +0000 (15:25 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 23 Sep 2016 16:19:56 +0000 (18:19 +0200)
commit69b00a7fb6faa1b19b5687a5762ff4f94d5ff9aa
tree9b1e90673e70a22af13b0342fd015500a11e7853
parentd828aabf0343452a76547239832e27045be92549
avcodec/cavsdsp: use av_clip_uint8() for idct

Fixes out of array read
Fixes: 1.swf

Found-by: 连一汉 <lianyihan@360.cn>
Tested-by: 连一汉 <lianyihan@360.cn>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 0e318f110bcd6bb8e7de9127f2747272e60f48d7)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/cavsdsp.c