init packet before calling the demuxer