diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2007-09-19 12:38:07 +0000 |
---|---|---|
committer | Benoit Fouet <benoit.fouet@free.fr> | 2007-09-19 12:38:07 +0000 |
commit | f94361612a69bea8afb4dde4c17a98f8fd915244 (patch) | |
tree | 47731875dd54268671016b5c5387e5a2ae425580 /ffplay.c | |
parent | 4ec45764a09b78e556e10cd65f2d2f5a57900990 (diff) | |
download | ffmpeg-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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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) |