0 VLC的block_t
1 发现问题
payload 数据内存起始位置是p_buffer, 大小是i_buffer ,
block本身也有个内存起始位置 p_start , 大小i_size ,
令人疑惑。
struct block_t
{
block_t *p_next;
uint8_t *p_buffer; /**< Payload start */
size_t i_buffer; /**< Payload length */
uint8_t *p_start; /**< Buffer start */
size_t i_size; /**< Buffer total size */
uint32_t i_flags;
unsigned i_nb_samples; /* Used for audio */
mtime_t i_pts;
mtime_t i_dts;
mtime_t i_length;