/* symbol for Huffman tree node */
#define HNODE -1
-typedef struct {
+typedef struct HeapElem {
uint64_t val;
int name;
} HeapElem;
int size = 0;
int ret = 0;
- if (!h || !up || !len) {
+ if (!h || !up || !len || !map) {
ret = AVERROR(ENOMEM);
goto end;
}