Revision 5189573c

View differences:

libavformat/gxf.c
351 351
    } else
352 352
        av_log(s, AV_LOG_INFO, "UMF packet missing\n");
353 353
    url_fskip(pb, len);
354
    // set a fallback value, 60000/1001 is specified for audio-only files
355
    // so use that regardless of why we do not know the video frame rate.
354 356
    if (!main_timebase.num || !main_timebase.den)
355
        main_timebase = (AVRational){1, 50}; // set some arbitrary fallback
357
        main_timebase = (AVRational){1001, 60000};
356 358
    for (i = 0; i < s->nb_streams; i++) {
357 359
        AVStream *st = s->streams[i];
358 360
        av_set_pts_info(st, 32, main_timebase.num, main_timebase.den);

Also available in: Unified diff