complete to seg mp4 to m3u8 ,and fix the memory leak during copy video packet ,but bug in avcodec_close don't fix