summaryrefslogtreecommitdiff
path: root/libavcodec/ffv1dec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2015-11-05 00:40:09 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2015-11-05 01:31:52 +0100
commitc665532820d9a9ad5bf0bc04941e505b518c3b38 (patch)
tree8907ce04fe46f48520fc04d3c92553d9ab70481a /libavcodec/ffv1dec.c
parent5745cf799a4389bc5d14f2b4daf32fe4631c50bc (diff)
downloadffmpeg-c665532820d9a9ad5bf0bc04941e505b518c3b38.tar.gz
avcodec/ffv1dec: Free tables on init failure
Fixes memleak Fixes: 07ec1fc3c1cbf2d3edcd7d9b52ca156c/asan_heap-oob_13624c5_491_ecd4720a03e697ba750b235690656c8f.avi Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/ffv1dec.c')
-rw-r--r--libavcodec/ffv1dec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/ffv1dec.c b/libavcodec/ffv1dec.c
index 367d8c7b95..8544bb7e0d 100644
--- a/libavcodec/ffv1dec.c
+++ b/libavcodec/ffv1dec.c
@@ -1134,4 +1134,5 @@ AVCodec ff_ffv1_decoder = {
.update_thread_context = ONLY_IF_THREADS_ENABLED(update_thread_context),
.capabilities = AV_CODEC_CAP_DR1 /*| AV_CODEC_CAP_DRAW_HORIZ_BAND*/ |
AV_CODEC_CAP_FRAME_THREADS | AV_CODEC_CAP_SLICE_THREADS,
+ .caps_internal = FF_CODEC_CAP_INIT_CLEANUP
};