aboutsummaryrefslogtreecommitdiffstats
path: root/ffplay.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2008-03-31 16:53:19 +0000
committerRobert Swain <robert.swain@gmail.com>2008-03-31 16:53:19 +0000
commit85362796beae6c5cad35dbf8e7f2ec9e6d7e2282 (patch)
tree84c20231d42bc673479284bde4f9f49136b2e4bf /ffplay.c
parent1354fa6442d4cb9ad1d96ee03010b3cd46068f41 (diff)
downloadffmpeg-85362796beae6c5cad35dbf8e7f2ec9e6d7e2282.tar.gz
Make ffplay.c:opt_seek use parse_time_or_die
Patch by Stefano Sabatini (stefano sabatini-lala poste it) Originally committed as revision 12653 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/ffplay.c b/ffplay.c
index 58f328426f..7c2437d03d 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -2406,11 +2406,7 @@ static void opt_sync(const char *arg)
static void opt_seek(const char *arg)
{
- start_time = parse_date(arg, 1);
- if (start_time == INT64_MIN) {
- fprintf(stderr, "Invalid duration specification: %s\n", arg);
- exit(1);
- }
+ start_time = parse_time_or_die("ss", arg, 1);
}
static int opt_debug(const char *opt, const char *arg)