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, 9 May 2019 09:50:03 +0000 (11:50 +0200)
commit2d64c35764d0e69848b8581d158f61443668c8e7
treedb4714ce8ebd6892ff6a8c80c8c3600125a9445c
parent430850d2f0152ff81bf060f40f23262673b1fdb5
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