diff options
author | Ivan Schreter <schreter@gmx.net> | 2009-02-21 20:11:47 +0000 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at> | 2009-02-21 20:11:47 +0000 |
commit | 346db3ef7f82ea0ca8365e4a700c0113b2f3a86f (patch) | |
tree | ae6337ec7c89f22c4d3e7608c3da15ef09226aa8 /libavformat/utils.c | |
parent | f5007cc84499b005028064786c628ff4c8850f3c (diff) | |
download | ffmpeg-346db3ef7f82ea0ca8365e4a700c0113b2f3a86f.tar.gz |
Use context variable repeat_pict for frame duration computation and
document this new use.
Patch by Ivan Schreter, schreter gmx net
Originally committed as revision 17492 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 0b036f48a0..1804167e2d 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -680,6 +680,8 @@ 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); } |