avcodec/mjpegdec: quant_matrixes can be up to 65535, use uint16_t
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 17 Mar 2017 02:25:18 +0000 (03:25 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 20 Mar 2017 00:38:04 +0000 (01:38 +0100)
commit23f3f92361a3db53e595de33cfd5440f53bee220
tree3353deac0ecfa30c7bb27fcf7728a6e10f0e6537
parent656a17e126c08ac8ed71da99047f13cf3e6c2a7c
avcodec/mjpegdec: quant_matrixes can be up to 65535, use uint16_t

Fixes invalid shift
Fixes: 870/clusterfuzz-testcase-5649105424482304

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/mjpegdec.c
libavcodec/mjpegdec.h