avcodec/jvdec: Use ff_get_buffer() when the content is not reused
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 3 May 2019 22:15:33 +0000 (00:15 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 27 Jun 2019 15:50:47 +0000 (17:50 +0200)
commit0060dc62f1aa059527a6d48a36c2f3ab1c5dc26b
tree6592aa403cdc76e53db8e746be7eecf53a3ef9df
parent5ea8ce3b37747b0e255d40b486c20943262c2334
avcodec/jvdec: Use ff_get_buffer() when the content is not reused

Fixes: Timeout (11sec -> 5sec)
Fixes: 14473/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_JV_fuzzer-5761630857592832

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Peter Ross <pross@xvid.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 09edcd35726c9ebea8a175b54dfe05483f7154f2)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/jvdec.c