summaryrefslogtreecommitdiff
path: root/libavcodec/huffman.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2015-02-09 13:18:24 +0000
committerPaul B Mahol <onemda@gmail.com>2015-02-10 09:35:23 +0000
commitfd6768a4b8e2ce9e25a447aec9194b2bcdd1ac35 (patch)
tree0857e734f8f15328412fed121fe5473c4bd9c69f /libavcodec/huffman.c
parenta5398aa56cfbf80acb409451cd807660402a34d4 (diff)
downloadffmpeg-fd6768a4b8e2ce9e25a447aec9194b2bcdd1ac35.tar.gz
avcodec/huffman: check if map was allocated too
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/huffman.c')
-rw-r--r--libavcodec/huffman.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/huffman.c b/libavcodec/huffman.c
index 2866eef310..46a0cd7cbb 100644
--- a/libavcodec/huffman.c
+++ b/libavcodec/huffman.c
@@ -62,7 +62,7 @@ int ff_huff_gen_len_table(uint8_t *dst, const uint64_t *stats, int stats_size, i
int size = 0;
int ret = 0;
- if (!h || !up || !len) {
+ if (!h || !up || !len || !map) {
ret = AVERROR(ENOMEM);
goto end;
}