avcodec/smacker: Check that not all tables are skiped
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 8 Aug 2019 20:38:11 +0000 (22:38 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 23 Aug 2019 20:26:50 +0000 (22:26 +0200)
commit1c9a56b13965ea9691185f6199df4eca7be993c7
tree2af3e3e197a5afc83da1aa437b5811114e8df91d
parent5231e89eb9eedc119d4f762469355f83e3628f20
avcodec/smacker: Check that not all tables are skiped

If all tables are skipped it would be impossible to encode any
"non black" video.

Fixes: Timeout (78sec -> 1ms)
Fixes: 15821/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SMACKER_fuzzer-5652598838788096

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