aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.h
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2015-10-14 14:28:20 +0200
committerHendrik Leppkes <h.leppkes@gmail.com>2015-10-14 14:28:20 +0200
commit9ccd90626f0ecef205faef1d25f0e3649d18e1b3 (patch)
tree8462ebe21f1e5ce5dc07d64f5174ca579d8d4897 /ffmpeg.h
parentb994788353ec39677d9f751da5cf754ef6247773 (diff)
parent16b0c929621f84983b83b9735ce973acb12723bc (diff)
downloadffmpeg-9ccd90626f0ecef205faef1d25f0e3649d18e1b3.tar.gz
Merge commit '16b0c929621f84983b83b9735ce973acb12723bc'
* commit '16b0c929621f84983b83b9735ce973acb12723bc': avconv: Add loop option. Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
Diffstat (limited to 'ffmpeg.h')
-rw-r--r--ffmpeg.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/ffmpeg.h b/ffmpeg.h
index 6544e6fb05..5722816f52 100644
--- a/ffmpeg.h
+++ b/ffmpeg.h
@@ -112,6 +112,7 @@ typedef struct OptionsContext {
/* input options */
int64_t input_ts_offset;
+ int loop;
int rate_emu;
int accurate_seek;
int thread_queue_size;
@@ -272,6 +273,10 @@ typedef struct InputStream {
int wrap_correction_done;
int64_t filter_in_rescale_delta_last;
+
+ 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 */
double ts_scale;
int saw_first_ts;
@@ -342,7 +347,12 @@ 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 input_streams */
+ 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 input_ts_offset;
+
int64_t ts_offset;
int64_t last_ts;
int64_t start_time; /* user-specified start time in AV_TIME_BASE or AV_NOPTS_VALUE */