diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2008-03-31 10:01:06 +0000 |
---|---|---|
committer | Robert Swain <robert.swain@gmail.com> | 2008-03-31 10:01:06 +0000 |
commit | 7542157d8afdf63a2cbc20a5e8aab86c85c42773 (patch) | |
tree | 3df705179d2d1cf8195f043079714bc66f9bb467 /ffmpeg.c | |
parent | 2ccf0a42903e55d23588b2bc477bee0cf66a46dc (diff) | |
download | ffmpeg-7542157d8afdf63a2cbc20a5e8aab86c85c42773.tar.gz |
Export parse_time_or_die from ffmpeg.c to cmdutils.c
Patch by Stefano Sabatini (stefano sabatini-lala poste it)
Originally committed as revision 12647 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 11 |
1 files changed, 0 insertions, 11 deletions
@@ -2580,17 +2580,6 @@ 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 *context, const char *timestr, int is_duration) -{ - int64_t us = parse_date(timestr, is_duration); - if (us == INT64_MIN) { - fprintf(stderr, "Invalid %s specification for %s: %s\n", - is_duration ? "duration" : "date", context, timestr); - exit(1); - } - return us; -} - static int opt_recording_time(const char *opt, const char *arg) { recording_time = parse_time_or_die(opt, arg, 1); |