diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2015-11-05 00:40:09 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-11-05 01:31:52 +0100 |
commit | c665532820d9a9ad5bf0bc04941e505b518c3b38 (patch) | |
tree | 8907ce04fe46f48520fc04d3c92553d9ab70481a /libavcodec | |
parent | 5745cf799a4389bc5d14f2b4daf32fe4631c50bc (diff) | |
download | ffmpeg-streaming-c665532820d9a9ad5bf0bc04941e505b518c3b38.zip ffmpeg-streaming-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')
-rw-r--r-- | libavcodec/ffv1dec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/ffv1dec.c b/libavcodec/ffv1dec.c index 367d8c7..8544bb7 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 }; |