avconv: support -t as an input option.

It limits the duration of the data read from a given input.
This commit is contained in:
Anton Khirnov
2013-06-18 11:12:09 +02:00
parent 811bd07846
commit 488a0fa689
5 changed files with 19 additions and 3 deletions

View File

@@ -239,6 +239,7 @@ typedef struct InputFile {
int ist_index; /* index of first stream in ist_table */
int64_t ts_offset;
int64_t start_time; /* user-specified start time in AV_TIME_BASE or AV_NOPTS_VALUE */
int64_t recording_time;
int nb_streams; /* number of stream that avconv is aware of; may be different
from ctx.nb_streams if new streams appear during av_read_frame() */
int rate_emu;