aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2008-07-18 22:23:29 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2008-07-18 22:23:29 +0000
commitfc7ad2af05cf8cdc6c70ff10c7bfdffd8822b5ef (patch)
treeaeab0ef5f293a17cf9530c5b78fcd8bc3edfa3a1
parent5bfe3b853a24aa1a29fdab89b5d2a7668b86d1f2 (diff)
downloadffmpeg-fc7ad2af05cf8cdc6c70ff10c7bfdffd8822b5ef.tar.gz
Make ffmpeg -t X with X<=0 transcode nothing.
Originally committed as revision 14285 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--ffmpeg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index e1f8e6e5e2..8a47834b07 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -154,7 +154,7 @@ static char *subtitle_language = NULL;
static float mux_preload= 0.5;
static float mux_max_delay= 0.7;
-static int64_t recording_time = 0;
+static int64_t recording_time = INT64_MAX;
static int64_t start_time = 0;
static int64_t rec_timestamp = 0;
static int64_t input_ts_offset = 0;
@@ -2020,7 +2020,7 @@ static int av_encode(AVFormatContext **output_files,
}
/* finish if recording time exhausted */
- if (recording_time > 0 && opts_min >= (recording_time / 1000000.0))
+ if (opts_min >= (recording_time / 1000000.0))
break;
/* finish if limit size exhausted */