X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fhuffman.c;h=46a0cd7cbb4abf8b38149d13970c784a8055b813;hb=ac7fc444eed553d5010c5860f2e91bfa42628e08;hp=2866eef31010c00c3e03a66867373897d7da3289;hpb=f955abe33321f2e28617a3db196be705c5453219;p=ffmpeg diff --git a/libavcodec/huffman.c b/libavcodec/huffman.c index 2866eef3101..46a0cd7cbb4 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; }