Revision 72415b2a libavformat/flvdec.c

View differences:

libavformat/flvdec.c
221 221
    //find the streams now so that amf_parse_object doesn't need to do the lookup every time it is called.
222 222
    for(i = 0; i < s->nb_streams; i++) {
223 223
        stream = s->streams[i];
224
        if     (stream->codec->codec_type == CODEC_TYPE_AUDIO) astream = stream;
225
        else if(stream->codec->codec_type == CODEC_TYPE_VIDEO) vstream = stream;
224
        if     (stream->codec->codec_type == AVMEDIA_TYPE_AUDIO) astream = stream;
225
        else if(stream->codec->codec_type == AVMEDIA_TYPE_VIDEO) vstream = stream;
226 226
    }
227 227

  
228 228
    //parse the second object (we want a mixed array)
......
236 236
    AVStream *st = av_new_stream(s, is_audio);
237 237
    if (!st)
238 238
        return NULL;
239
    st->codec->codec_type = is_audio ? CODEC_TYPE_AUDIO : CODEC_TYPE_VIDEO;
239
    st->codec->codec_type = is_audio ? AVMEDIA_TYPE_AUDIO : AVMEDIA_TYPE_VIDEO;
240 240
    av_set_pts_info(st, 32, 1, 1000); /* 32 bit pts in ms */
241 241
    return st;
242 242
}

Also available in: Unified diff