Revision b9f9e59a libavformat/flvenc.c

View differences:

libavformat/flvenc.c
337 337
    /* Add EOS tag */
338 338
    for (i = 0; i < s->nb_streams; i++) {
339 339
        AVCodecContext *enc = s->streams[i]->codec;
340
        if (enc->codec_type == CODEC_TYPE_VIDEO &&
340
        if (enc->codec_type == AVMEDIA_TYPE_VIDEO &&
341 341
                enc->codec_id == CODEC_ID_H264) {
342 342
            put_avc_eos_tag(pb, flv->last_video_ts);
343 343
        }
......
405 405
    }
406 406

  
407 407
    ts = pkt->dts + flv->delay; // add delay to force positive dts
408
    if (enc->codec_type == CODEC_TYPE_VIDEO) {
408
    if (enc->codec_type == AVMEDIA_TYPE_VIDEO) {
409 409
        if (flv->last_video_ts < ts)
410 410
            flv->last_video_ts = ts;
411 411
    }

Also available in: Unified diff