comparison libmpdemux/stheader.h @ 18917:d9a75b26da6c

Add a new video pts tracking mode, enabled by option -correct-pts. This mode has the following differences: - Video timing is correct for streams with B frames, at least with some demuxers. - Video filters can modify frame timestamps and insert new frames, and removing frames is handled better than before. - Some things are known to break, it's not usable as the default yet. Things should work as before when the -correct-pts option is not used.
author uau
date Thu, 06 Jul 2006 06:58:17 +0000
parents 9e2b300db17b
children 70a5e89ea4cd
comparison
equal deleted inserted replaced
18916:a95ed361d16b 18917:d9a75b26da6c
62 float num_frames; // number of frames played 62 float num_frames; // number of frames played
63 int num_frames_decoded; // number of frames decoded 63 int num_frames_decoded; // number of frames decoded
64 // timing (mostly for mpeg): 64 // timing (mostly for mpeg):
65 double pts; // predicted/interpolated PTS of the current frame 65 double pts; // predicted/interpolated PTS of the current frame
66 double i_pts; // PTS for the _next_ I/P frame 66 double i_pts; // PTS for the _next_ I/P frame
67 double buffered_pts[20];
68 int num_buffered_pts;
67 // output format: (set by demuxer) 69 // output format: (set by demuxer)
68 float fps; // frames per second (set only if constant fps) 70 float fps; // frames per second (set only if constant fps)
69 float frametime; // 1/fps 71 float frametime; // 1/fps
70 float aspect; // aspect ratio stored in the file (for prescaling) 72 float aspect; // aspect ratio stored in the file (for prescaling)
71 int i_bps; // == bitrate (compressed bytes/sec) 73 int i_bps; // == bitrate (compressed bytes/sec)