avcodec/tiff: reset sampling[] if its invalid
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 15 May 2017 19:19:06 +0000 (21:19 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 20 May 2017 01:41:34 +0000 (03:41 +0200)
commita1778b8cdda75757956a414c036da7326e4cac2e
tree4890788c57429e5f5c3ec01c2eaf274666323056
parentaa941e9aa9d5f5cea07f7d93d6f2c37021c72d3d
avcodec/tiff: reset sampling[] if its invalid

Fixes divission by 0
Fixes: clusterfuzz-testcase-minimized-5592896440893440

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit f08122fbe039a56ab3c24f74636b4b0efea97d85)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/tiff.c