#include "global.h"
#include "nalu.h"
#include "memalloc.h"
Go to the source code of this file.
Functions | |
NALU_t * | AllocNALU (int buffersize) |
void | FreeNALU (NALU_t *n) |
Definition in file nalucommon.c.
NALU_t* AllocNALU | ( | int | buffersize | ) |
Allocates memory for a NALU.
allocate one NAL Unit
buffersize | size of NALU buffer |
Definition at line 32 of file nalucommon.c.
References nalu_t::buf, nalu_t::max_size, and no_mem_exit().
Referenced by read_new_slice().
void FreeNALU | ( | NALU_t * | n | ) |
Frees a NALU.
free one NAL Unit
n | NALU to be freed |
Definition at line 61 of file nalucommon.c.
References nalu_t::buf.
Referenced by read_new_slice(), and read_next_nalu().