summaryrefslogtreecommitdiff
path: root/avconv.h
diff options
context:
space:
mode:
authorAlexandra Hájková <alexandra.khirnova@gmail.com>2015-10-09 22:11:56 +0200
committerAnton Khirnov <anton@khirnov.net>2015-10-13 09:41:02 +0200
commit16b0c929621f84983b83b9735ce973acb12723bc (patch)
treec68a05e8279576d6c84bab7f6b76717e4ebb2971 /avconv.h
parent11c5f438ff83da5040e85bfa6299f56b321d32ef (diff)
avconv: Add loop option.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'avconv.h')
-rw-r--r--avconv.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/avconv.h b/avconv.h
index 187dcdbd28..5a7cf0991c 100644
--- a/avconv.h
+++ b/avconv.h
@@ -102,6 +102,7 @@ typedef struct OptionsContext {
/* input options */
int64_t input_ts_offset;
+ int loop;
int rate_emu;
int accurate_seek;
@@ -233,6 +234,9 @@ typedef struct InputStream {
int64_t next_dts;
/* dts of the last packet read for this stream */
int64_t last_dts;
+ int64_t min_pts; /* pts with the smallest value in a current stream */
+ int64_t max_pts; /* pts with the higher value in a current stream */
+ int64_t nb_samples; /* number of samples in the last decoded audio frame before looping */
PtsCorrectionContext pts_ctx;
double ts_scale;
int showed_multi_packet_warning;
@@ -282,6 +286,10 @@ typedef struct InputFile {
int eof_reached; /* true if eof reached */
int eagain; /* true if last read attempt returned EAGAIN */
int ist_index; /* index of first stream in ist_table */
+ int loop; /* set number of times input stream should be looped */
+ int64_t duration; /* actual duration of the longest stream in a file
+ at the moment when looping happens */
+ AVRational time_base; /* time base of the duration */
int64_t ts_offset;
int64_t start_time; /* user-specified start time in AV_TIME_BASE or AV_NOPTS_VALUE */
int64_t recording_time;