Revision f6c7375a cmdutils.c

View differences:

cmdutils.c
35 35
#include "libswscale/swscale.h"
36 36
#include "libpostproc/postprocess.h"
37 37
#include "libavutil/avstring.h"
38
#include "libavutil/parseutils.h"
38 39
#include "libavutil/pixdesc.h"
39 40
#include "libavutil/eval.h"
40 41
#include "libavcodec/opt.h"
......
113 114

  
114 115
int64_t parse_time_or_die(const char *context, const char *timestr, int is_duration)
115 116
{
116
    int64_t us = parse_date(timestr, is_duration);
117
    if (us == INT64_MIN) {
117
    int64_t us;
118
    if (av_parse_time(&us, timestr, is_duration) < 0) {
118 119
        fprintf(stderr, "Invalid %s specification for %s: %s\n",
119 120
                is_duration ? "duration" : "date", context, timestr);
120 121
        exit(1);

Also available in: Unified diff