summaryrefslogtreecommitdiff
path: root/libavcodec/avcodec.h
diff options
context:
space:
mode:
authorIvan Schreter <schreter@gmx.net>2009-02-21 20:11:47 +0000
committerCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>2009-02-21 20:11:47 +0000
commit346db3ef7f82ea0ca8365e4a700c0113b2f3a86f (patch)
treeae6337ec7c89f22c4d3e7608c3da15ef09226aa8 /libavcodec/avcodec.h
parentf5007cc84499b005028064786c628ff4c8850f3c (diff)
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 'libavcodec/avcodec.h')
-rw-r--r--libavcodec/avcodec.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index b0ec18a49c..f38ad2bdb7 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -3005,6 +3005,18 @@ typedef struct AVCodecParserContext {
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 */