Revision 327c4076

View differences:

libavformat/utils.c
632 632
    *pden = 0;
633 633
    switch(st->codec.codec_type) {
634 634
    case CODEC_TYPE_VIDEO:
635
        if(st->codec.time_base.num*1000 <= st->codec.time_base.den){
635
        if(st->time_base.num*1000 > st->time_base.den){
636 636
            *pnum = st->time_base.num;
637 637
            *pden = st->time_base.den;
638
        }else{
638
        }else if(st->codec.time_base.num*1000 > st->codec.time_base.den){
639 639
            *pnum = st->codec.time_base.num;
640 640
            *pden = st->codec.time_base.den;
641
        }
642
        if (pc && pc->repeat_pict) {
643
            *pden *= 2;
644
            *pnum = (*pnum) * (2 + pc->repeat_pict);
641
            if (pc && pc->repeat_pict) {
642
                *pden *= 2;
643
                *pnum = (*pnum) * (2 + pc->repeat_pict);
644
            }
645 645
        }
646 646
        break;
647 647
    case CODEC_TYPE_AUDIO:

Also available in: Unified diff