avcodec/prosumer: Only memset(0) what is needed.
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 1 May 2019 17:43:40 +0000 (19:43 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 9 May 2019 20:07:26 +0000 (22:07 +0200)
commit17f91c07ef4c04b80d5b09dc3baa64dec161e307
tree35853e5c1001d53fd485261894c88a59545fcf1d
parentc7f95d2bd938b440f1d9310ce4785a28dcb44a09
avcodec/prosumer: Only memset(0) what is needed.

Fixes: Timeout (11sec -> 0.08sec)
Fixes: 14406/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_PROSUMER_fuzzer-5151210148986880

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