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>
Wed, 28 Sep 2016 12:23:07 +0000 (14:23 +0200)
commit9d738e6968757d4e70c8e07e0b720ac0004accc4
tree8a2307855f57a66a694c67f93d7755aac84d9c4f
parent77c9c350930907b5201576573a70ffb8aaaec60f
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