avcodec/huffman: check if map was allocated too

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol 2015-02-09 13:18:24 +00:00
parent a5398aa56c
commit fd6768a4b8
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}