diff avcodec.h @ 9000:78afc2990d00 libavcodec

Use context variable repeat_pict for frame duration computation and document this new use. Patch by Ivan Schreter, schreter gmx net
author cehoyos
date Sat, 21 Feb 2009 20:11:47 +0000
parents cdd8fa4a362a
children 15a3df8c01fd
line wrap: on
line diff
--- a/avcodec.h	Sat Feb 21 20:03:05 2009 +0000
+++ b/avcodec.h	Sat Feb 21 20:11:47 2009 +0000
@@ -3005,6 +3005,18 @@
     int64_t next_frame_offset; /* offset of the next frame */
     /* video info */
     int pict_type; /* XXX: Put it back in AVCodecContext. */
+    /**
+     * This field is used for proper frame duration computation in lavf.
+     * 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)
+     *
+     * 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 */
     int64_t dts;     /* dts of the current frame */