Commit fd6768a4 authored by Paul B Mahol's avatar Paul B Mahol

avcodec/huffman: check if map was allocated too

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent a5398aa5
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment