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:18:18 +0000 (18:18 +0200)
commit0e318f110bcd6bb8e7de9127f2747272e60f48d7
tree98b8ed0798ac327799881e34eb5722877e88b461
parentd41c9b1c275f4d1ffe64fe61580d75749acf7fe6
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>
libavcodec/cavsdsp.c