Revision 01f4895c libavformat/flvenc.c

View differences:

libavformat/flvenc.c
97 97
    put_be32(pb,0);
98 98
    
99 99
    for(i=0; i<s->nb_streams; i++){
100
        AVCodecContext *enc = &s->streams[i]->codec;
100
        AVCodecContext *enc = s->streams[i]->codec;
101 101
        av_set_pts_info(s->streams[i], 24, 1, 1000); /* 24 bit pts in ms */
102 102
        if(enc->codec_tag == 5){
103 103
            put_byte(pb,8); // message type
......
134 134
static int flv_write_packet(AVFormatContext *s, AVPacket *pkt)
135 135
{
136 136
    ByteIOContext *pb = &s->pb;
137
    AVCodecContext *enc = &s->streams[pkt->stream_index]->codec;
137
    AVCodecContext *enc = s->streams[pkt->stream_index]->codec;
138 138
    FLVContext *flv = s->priv_data;
139 139
    int size= pkt->size;
140 140
    int flags;

Also available in: Unified diff