mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/huffman: check if map was allocated too
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
a5398aa56c
commit
fd6768a4b8
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue