aboutsummaryrefslogtreecommitdiffstats
path: root/ffplay.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2007-09-19 12:38:07 +0000
committerBenoit Fouet <benoit.fouet@free.fr>2007-09-19 12:38:07 +0000
commitf94361612a69bea8afb4dde4c17a98f8fd915244 (patch)
tree47731875dd54268671016b5c5387e5a2ae425580 /ffplay.c
parent4ec45764a09b78e556e10cd65f2d2f5a57900990 (diff)
downloadffmpeg-f94361612a69bea8afb4dde4c17a98f8fd915244.tar.gz
Make parse_date return INT64_MIN in case of unparsable input.
Patch by Stefano Sabatini: [stefano sabatini-lala poste it] Original thread: [FFmpeg-devel] [PATCH] Enhace documentation forlibavformat/utils.c:parse_date Date: 08/17/2007 09:40 PM Originally committed as revision 10533 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ffplay.c b/ffplay.c
index bf109ad1e9..6ec1bcb34a 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -2406,6 +2406,10 @@ 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);
+ }
}
static void opt_debug(const char *arg)