aboutsummaryrefslogtreecommitdiffstats
path: root/avconv_filter.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-06-18 11:12:09 +0200
committerAnton Khirnov <anton@khirnov.net>2013-08-05 10:54:19 +0200
commit488a0fa68973d48e264d54f1722f7afb18afbea7 (patch)
tree7b7862548be5012cef6405ea48fc45ce5a2e32e3 /avconv_filter.c
parent811bd0784679dfcb4ed02043a37c92f9df10500e (diff)
downloadffmpeg-488a0fa68973d48e264d54f1722f7afb18afbea7.tar.gz
avconv: support -t as an input option.
It limits the duration of the data read from a given input.
Diffstat (limited to 'avconv_filter.c')
-rw-r--r--avconv_filter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/avconv_filter.c b/avconv_filter.c
index 704a1b09b7..348196f5fa 100644
--- a/avconv_filter.c
+++ b/avconv_filter.c
@@ -463,7 +463,7 @@ static int configure_input_video_filter(FilterGraph *fg, InputFilter *ifilter,
snprintf(name, sizeof(name), "trim for input stream %d:%d",
ist->file_index, ist->st->index);
ret = insert_trim(((f->start_time == AV_NOPTS_VALUE) || !f->accurate_seek) ?
- AV_NOPTS_VALUE : 0, INT64_MAX, &last_filter, &pad_idx, name);
+ AV_NOPTS_VALUE : 0, f->recording_time, &last_filter, &pad_idx, name);
if (ret < 0)
return ret;
@@ -550,7 +550,7 @@ static int configure_input_audio_filter(FilterGraph *fg, InputFilter *ifilter,
snprintf(name, sizeof(name), "trim for input stream %d:%d",
ist->file_index, ist->st->index);
ret = insert_trim(((f->start_time == AV_NOPTS_VALUE) || !f->accurate_seek) ?
- AV_NOPTS_VALUE : 0, INT64_MAX, &last_filter, &pad_idx, name);
+ AV_NOPTS_VALUE : 0, f->recording_time, &last_filter, &pad_idx, name);
if (ret < 0)
return ret;