# HG changeset patch # User cehoyos # Date 1235247107 0 # Node ID 86e891c581e061630cc516c1fdf63e2fd141e892 # Parent da2be12b7b4bade2c096be1d33648100393f045e Use context variable repeat_pict for frame duration computation and document this new use. Patch by Ivan Schreter, schreter gmx net diff -r da2be12b7b4b -r 86e891c581e0 utils.c --- a/utils.c Sat Feb 21 20:11:34 2009 +0000 +++ b/utils.c Sat Feb 21 20:11:47 2009 +0000 @@ -680,6 +680,8 @@ *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); }