summaryrefslogtreecommitdiffstats
path: root/libavcodec/dnxhdenc.h
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2018-08-30 11:35:07 +0200
committerPaul B Mahol <onemda@gmail.com>2018-08-31 17:45:35 +0200
commitaeb73c73e112130fe344529bebb71bca3d286cb9 (patch)
treeb57c0f0ee6482530438eebe4c95945fb095f14c2 /libavcodec/dnxhdenc.h
parent56f68a099cc607658118e00cad30569103ae3751 (diff)
downloadffmpeg-streaming-aeb73c73e112130fe344529bebb71bca3d286cb9.zip
ffmpeg-streaming-aeb73c73e112130fe344529bebb71bca3d286cb9.tar.gz
avcodec/dnxhdenc: stop leaking memory when initalization fails
Fixes #6593.
Diffstat (limited to 'libavcodec/dnxhdenc.h')
-rw-r--r--libavcodec/dnxhdenc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/dnxhdenc.h b/libavcodec/dnxhdenc.h
index 963821a..7b0d862 100644
--- a/libavcodec/dnxhdenc.h
+++ b/libavcodec/dnxhdenc.h
@@ -86,6 +86,8 @@ typedef struct DNXHDEncContext {
unsigned frame_bits;
uint8_t *src[3];
+ uint32_t *orig_vlc_codes;
+ uint8_t *orig_vlc_bits;
uint32_t *vlc_codes;
uint8_t *vlc_bits;
uint16_t *run_codes;
OpenPOWER on IntegriCloud