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>
Sat, 4 May 2019 18:22:29 +0000 (20:22 +0200)
commit09edcd35726c9ebea8a175b54dfe05483f7154f2
tree06a524bdd1d682bd3d1cbaeb95814557ac6c9280
parent3afdd3e11a2d1239aca7c6350110aee7371d862e
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>
libavcodec/jvdec.c