changeset 9034:96731d42ca82 libavcodec

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 bcf716c58be4
children d22ed7aad1b0
files avcodec.h
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/avcodec.h	Tue Feb 24 19:04:43 2009 +0000
+++ b/avcodec.h	Tue Feb 24 20:17:02 2009 +0000
@@ -3098,12 +3098,9 @@
      * It signals, how much longer the frame duration of the current frame
      * is compared to normal frame duration.
      *
-     * frame_duration = (2 + repeat_pict) / (2*fps)
+     * frame_duration = (1 + repeat_pict) * time_base
      *
      * It is used by codecs like H.264 to display telecined material.
-     *
-     * @note This field can also be set to -1 for half-frame duration in case
-     *       of field pictures.
      */
     int repeat_pict; /* XXX: Put it back in AVCodecContext. */
     int64_t pts;     /* pts of the current frame */