Just noticed there is a memory leak in h264.c with the usage of rbsp_buffer.