[FFmpeg-devel] [PATCH] avcodec/huffman: check if map was allocated too
Paul B Mahol
onemda at gmail.com
Mon Feb 9 14:26:57 CET 2015
Signed-off-by: Paul B Mahol <onemda at gmail.com>
---
libavcodec/huffman.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/huffman.c b/libavcodec/huffman.c
index 2866eef..46a0cd7 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;
}
--
1.7.11.2
More information about the ffmpeg-devel
mailing list