for(i=0; i<s->nb_streams; i++){ AVCodecContext *enc = &s->streams[i]->codec; if(enc->codec_tag == 5){ put_byte(pb,8); put_be24(pb,0); put_be24(pb,0); put_be32(pb,0); put_be32(pb,11); flv->reserved=5; } }
static int flv_write_header(AVFormatContext *s){    ByteIOContext *pb = &s->pb;    FLVContext *flv = s->priv_data;    av_set_pts_info(s, 24, 1, 1000); /* 24 bit pts in ms */    flv->hasAudio = 0;    flv->hasVideo = 0;    flv->initDelay = -1;    flv->frames = 0;    put_tag(pb,"FLV");    put_byte(pb,1);    put_byte(pb,0); // delayed write    put_be32(pb,9);    put_be32(pb,0);    return 0;}