summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-07-26 17:58:26 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-07-26 17:58:26 +0200
commitf5a5b4344b7ecf9205e3ca291b3bb33c6ef4acb0 (patch)
tree2d6aca81868489eacf0537484d311ef73c7f6238 /ffmpeg.c
parent1a7af514deccc4efa16e8f1dc21d3313e4331ca5 (diff)
ffmpeg: doxyfy some comments and mention the timebase used in various timestamp fields.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 06de210c99..1ce377241c 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -225,13 +225,12 @@ typedef struct InputStream {
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 */
+ * several frames in a packet) of the next frame in current packet (in AV_TIME_BASE units) */
int64_t next_dts;
- /* dts of the last packet read for this stream */
- int64_t dts;
+ int64_t dts; ///< dts of the last packet read for this stream (in AV_TIME_BASE units)
- int64_t next_pts; /* synthetic pts for the next decode frame */
- int64_t pts; /* current pts of the decoded frame */
+ int64_t next_pts; ///< synthetic pts for the next decode frame (in AV_TIME_BASE units)
+ int64_t pts; ///< current pts of the decoded frame (in AV_TIME_BASE units)
double ts_scale;
int is_start; /* is 1 at the start and after a discontinuity */
int saw_first_ts;
@@ -347,8 +346,8 @@ typedef struct OutputFile {
AVFormatContext *ctx;
AVDictionary *opts;
int ost_index; /* index of the first stream in output_streams */
- int64_t recording_time; /* desired length of the resulting file in microseconds */
- int64_t start_time; /* start time in microseconds */
+ int64_t recording_time; ///< desired length of the resulting file in microseconds == AV_TIME_BASE units
+ int64_t start_time; ///< start time in microseconds == AV_TIME_BASE units
uint64_t limit_filesize; /* filesize limit expressed in bytes */
} OutputFile;