Revision 346db3ef libavformat/utils.c

View differences:

libavformat/utils.c
680 680
            *pnum = st->codec->time_base.num;
681 681
            *pden = st->codec->time_base.den;
682 682
            if (pc && pc->repeat_pict) {
683
                // NOTE: repeat_pict can be also -1 for half-frame durations,
684
                // e.g., in H.264 interlaced field picture stream
683 685
                *pden *= 2;
684 686
                *pnum = (*pnum) * (2 + pc->repeat_pict);
685 687
            }

Also available in: Unified diff