if(s->oformat != NULL) { if(!strcmp("3gp", s->oformat->name) || !strcmp("mp4", s->oformat->name)) mov_write_ftyp_tag(pb,s);
mov->mode = MODE_MP4;  if (s->oformat != NULL) { if (!strcmp("3gp", s->oformat->name)) mov->mode = MODE_3GP; else if (!strcmp("mov", s->oformat->name)) mov->mode = MODE_MOV;  if ( mov->mode == MODE_3GP || mov->mode == MODE_MP4 ) mov_write_ftyp_tag(pb,s); }  for (i=0; i<MAX_STREAMS; i++) { mov->tracks[i].mode = mov->mode;
static int mov_write_header(AVFormatContext *s){    ByteIOContext *pb = &s->pb;    if(s->oformat != NULL) {    if(!strcmp("3gp", s->oformat->name) || !strcmp("mp4", s->oformat->name))        mov_write_ftyp_tag(pb,s);    }    put_flush_packet(pb);    return 0;}