diff options
author | Paul B Mahol <onemda@gmail.com> | 2015-02-09 13:18:24 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2015-02-10 09:35:23 +0000 |
commit | fd6768a4b8e2ce9e25a447aec9194b2bcdd1ac35 (patch) | |
tree | 0857e734f8f15328412fed121fe5473c4bd9c69f | |
parent | a5398aa56cfbf80acb409451cd807660402a34d4 (diff) | |
download | ffmpeg-fd6768a4b8e2ce9e25a447aec9194b2bcdd1ac35.tar.gz |
avcodec/huffman: check if map was allocated too
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r-- | libavcodec/huffman.c | 2 |
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; } |