for(i=0; i<s->nb_streams; i++){ asf_st= s->streams[i]->priv_data; av_free_packet(&asf_st->pkt); asf_st->frag_offset=0; asf_st->seq=0; } asf->asf_st= NULL;
static void asf_reset_header(AVFormatContext *s){    ASFContext *asf = s->priv_data;    asf->packet_nb_frames = 0;    asf->packet_timestamp_start = -1;    asf->packet_timestamp_end = -1;    asf->packet_size_left = 0;    asf->packet_segments = 0;    asf->packet_flags = 0;    asf->packet_property = 0;    asf->packet_timestamp = 0;    asf->packet_segsizetype = 0;    asf->packet_segments = 0;    asf->packet_seq = 0;    asf->packet_replic_size = 0;    asf->packet_key_frame = 0;    asf->packet_padsize = 0;    asf->packet_frag_offset = 0;    asf->packet_frag_size = 0;    asf->packet_frag_timestamp = 0;    asf->packet_multi_size = 0;    asf->packet_obj_size = 0;    asf->packet_time_delta = 0;    asf->packet_time_start = 0;}