Mercurial > libavformat.hg
changeset 4568:9b00d2a02fa1 libavformat
Change duration computation to use time_base instead of TB/2.
Patch by Ivan Schreter, schreter gmx net
author | cehoyos |
---|---|
date | Tue, 24 Feb 2009 20:17:02 +0000 |
parents | 963e3b76c7a6 |
children | 0000335f1eba |
files | utils.c |
diffstat | 1 files changed, 1 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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;