Hi, what's the use of the last 8 bytes in new_demux_packet() ? dp->buffer=len?(unsigned char*)malloc(len+8):NULL; if(len) memset(dp->buffer+len,0,8); If I want to change via realloc() the size of the packet (I know it' nasty, but just to know) how should I reflect the change in these last 8 bytes ? Thanks, Nico