Revision 4022fe01 libavformat/raw.c

View differences:

libavformat/raw.c
278 278
    /* for MJPEG, specify frame rate */
279 279
    /* for MPEG-4 specify it, too (most MPEG-4 streams do not have the fixed_vop_rate set ...)*/
280 280
    if (ap->time_base.num) {
281
        av_set_pts_info(st, 64, ap->time_base.num, ap->time_base.den);
281
        st->codec->time_base= ap->time_base;
282 282
    } else if ( st->codec->codec_id == CODEC_ID_MJPEG ||
283 283
                st->codec->codec_id == CODEC_ID_MPEG4 ||
284 284
                st->codec->codec_id == CODEC_ID_DIRAC ||
285 285
                st->codec->codec_id == CODEC_ID_H264) {
286
        av_set_pts_info(st, 64, 1, 25);
286
        st->codec->time_base= (AVRational){1,25};
287 287
    }
288
    av_set_pts_info(st, 64, 1, 1200000);
288 289

  
289 290
    return 0;
290 291
}

Also available in: Unified diff