avcodec/nuv: Move comptype check up
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 2 Nov 2019 13:14:44 +0000 (14:14 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 24 Nov 2019 23:07:07 +0000 (00:07 +0100)
commit1138cdecbe0164ab1f07768418e794fddfdc636d
treefd8e8c95f7fde6afa73d46d5e63e8019696095e7
parentcf323f4d38f5756ecdb8fb4f72c80a8069da832e
avcodec/nuv: Move comptype check up

Fixes: Timeout (23sec -> 5ms)
Fixes: 18517/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_NUV_fuzzer-5753135536013312

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