From 16b0c929621f84983b83b9735ce973acb12723bc Mon Sep 17 00:00:00 2001 From: Alexandra Hájková Date: Fri, 9 Oct 2015 22:11:56 +0200 Subject: avconv: Add loop option. Signed-off-by: Anton Khirnov --- avconv.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'avconv.h') 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; -- cgit v1.2.3