diff options
author | Ivan Schreter <schreter@gmx.net> | 2009-02-24 20:17:02 +0000 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at> | 2009-02-24 20:17:02 +0000 |
commit | 810c451b02404a3a2d43186003a4b2b9cbedd02e (patch) | |
tree | 7b99c9eb6d9405f955d2f2b92ac1f66cc289db68 /libavformat/utils.c | |
parent | a05aa821b67d48a008e0f470fd2f9656603d40f5 (diff) | |
download | ffmpeg-810c451b02404a3a2d43186003a4b2b9cbedd02e.tar.gz |
Change duration computation to use time_base instead of TB/2.
Patch by Ivan Schreter, schreter gmx net
Originally committed as revision 17570 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 46a1b5f8bb..61f74c3c18 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -680,10 +680,7 @@ static void compute_frame_duration(int *pnum, int *pden, AVStream *st, *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; |