avcodec/fmvc: Check nb_blocks
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 12 May 2017 23:22:27 +0000 (01:22 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 12 May 2017 23:23:23 +0000 (01:23 +0200)
commit0158b405a71f386c7844a3d975315afd47f16b5d
treed4159873bfdacde3b6991f91b2ee57dba468d304
parente66488252335d3e7870c72d1ac7040e8c1853f07
avcodec/fmvc: Check nb_blocks

Fixes: out of array read
Fixes: 1508/clusterfuzz-testcase-minimized-5011336327069696

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