diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2008-03-17 09:33:21 +0000 |
---|---|---|
committer | Benoit Fouet <benoit.fouet@free.fr> | 2008-03-17 09:33:21 +0000 |
commit | 972d628a8bb81737fe7dbe77f1b3b0dae9a07f1d (patch) | |
tree | 2a9d4e38e29b1093af4a0b9fb6209b1d97d7009b /ffmpeg.c | |
parent | 08e89160e4217f859d984e836f4895535c0124cc (diff) | |
download | ffmpeg-streaming-972d628a8bb81737fe7dbe77f1b3b0dae9a07f1d.zip ffmpeg-streaming-972d628a8bb81737fe7dbe77f1b3b0dae9a07f1d.tar.gz |
Provide a context to parse_time_or_die().
Patch by Stefano Sabatini: stefano sabatini-lala poste it
Originally committed as revision 12472 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -2580,12 +2580,12 @@ static void opt_map_meta_data(const char *arg) m->in_file = strtol(p, &p, 0); } -static int64_t parse_time_or_die(const char *timestr, int is_duration) +static int64_t parse_time_or_die(const char *context, const char *timestr, int is_duration) { int64_t us = parse_date(timestr, is_duration); if (us == INT64_MIN) { - fprintf(stderr, "Invalid %s specification: %s\n", - is_duration ? "duration" : "date", timestr); + fprintf(stderr, "Invalid %s specification for %s: %s\n", + is_duration ? "duration" : "date", context, timestr); exit(1); } return us; @@ -2593,22 +2593,22 @@ static int64_t parse_time_or_die(const char *timestr, int is_duration) static void opt_recording_time(const char *arg) { - recording_time = parse_time_or_die(arg, 1); + recording_time = parse_time_or_die("t", arg, 1); } static void opt_start_time(const char *arg) { - start_time = parse_time_or_die(arg, 1); + start_time = parse_time_or_die("ss", arg, 1); } static void opt_rec_timestamp(const char *arg) { - rec_timestamp = parse_time_or_die(arg, 0) / 1000000; + rec_timestamp = parse_time_or_die("timestamp", arg, 0) / 1000000; } static void opt_input_ts_offset(const char *arg) { - input_ts_offset = parse_time_or_die(arg, 1); + input_ts_offset = parse_time_or_die("itsoffset", arg, 1); } static enum CodecID find_codec_or_die(const char *name, int type, int encoder) |