# HG changeset patch # User cehoyos # Date 1235506622 0 # Node ID 9b00d2a02fa19e97fe74a0cdaf81753f32aa5734 # Parent 963e3b76c7a69b8ccaeeebf66007ba030a039814 Change duration computation to use time_base instead of TB/2. Patch by Ivan Schreter, schreter gmx net diff -r 963e3b76c7a6 -r 9b00d2a02fa1 utils.c --- a/utils.c Tue Feb 24 15:04:18 2009 +0000 +++ b/utils.c Tue Feb 24 20:17:02 2009 +0000 @@ -680,10 +680,7 @@ *pnum = st->codec->time_base.num; *pden = st->codec->time_base.den; if (pc && pc->repeat_pict) { - // NOTE: repeat_pict can be also -1 for half-frame durations, - // e.g., in H.264 interlaced field picture stream - *pden *= 2; - *pnum = (*pnum) * (2 + pc->repeat_pict); + *pnum = (*pnum) * (1 + pc->repeat_pict); } } break;