[FFmpeg-cvslog] ffmpeg: add (next_dts/dts) variables.

Michael Niedermayer git at videolan.org
Wed Feb 8 08:22:52 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Feb  8 06:13:44 2012 +0100| [fe380adbfba67c6f32f4b1927ab19a3c3fce48c7] | committer: Michael Niedermayer

ffmpeg: add (next_dts/dts) variables.

Strongly based on Anton Khirnovs code.
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fe380adbfba67c6f32f4b1927ab19a3c3fce48c7
---

 ffmpeg.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/ffmpeg.c b/ffmpeg.c
index 40263e8..db4edd9 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -204,6 +204,12 @@ typedef struct InputStream {
     AVFrame *filtered_frame;
 
     int64_t       start;     /* time when read started */
+    /* predicted dts of the next packet read for this stream or (when there are
+     * several frames in a packet) of the next frame in current packet */
+    int64_t       next_dts;
+    /* dts of the last packet read for this stream */
+    int64_t       dts;
+
     int64_t       next_pts;  /* synthetic pts for cases where pkt.pts
                                 is not defined */
     int64_t       pts;       /* current pts */



More information about the ffmpeg-cvslog mailing list