aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-09-06 11:24:22 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-02-27 07:21:00 +0100
commit262162883a0c5b17050489381f8a6de7d9eeae66 (patch)
treef23155bdea53232a3d3ca7c18c27a2208e7a44a9
parent4c7718c1de83fb38d24d87ffe9e47fad639d2f3a (diff)
downloadffmpeg-262162883a0c5b17050489381f8a6de7d9eeae66.tar.gz
avformat/segment: Fix error messages
Reviewed-by: Ridley Combs <rcombs@rcombs.me> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> (cherry picked from commit 1d090dfa911914933a852106234a3ecbfa1dc9ba)
-rw-r--r--libavformat/segment.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/segment.c b/libavformat/segment.c
index fc67bf92b6..db2f4bb6cf 100644
--- a/libavformat/segment.c
+++ b/libavformat/segment.c
@@ -510,7 +510,7 @@ static int parse_times(void *log_ctx, int64_t **times, int *nb_times,
/* check on monotonicity */
if (i && (*times)[i-1] > (*times)[i]) {
av_log(log_ctx, AV_LOG_ERROR,
- "Specified time %f is greater than the following time %f\n",
+ "Specified time %f is smaller than the last time %f\n",
(float)((*times)[i])/1000000, (float)((*times)[i-1])/1000000);
FAIL(AVERROR(EINVAL));
}
@@ -560,7 +560,7 @@ static int parse_frames(void *log_ctx, int **frames, int *nb_frames,
f = strtol(fstr, &tailptr, 10);
if (*tailptr || f <= 0 || f >= INT_MAX) {
av_log(log_ctx, AV_LOG_ERROR,
- "Invalid argument '%s', must be a positive integer <= INT64_MAX\n",
+ "Invalid argument '%s', must be a positive integer < INT_MAX\n",
fstr);
FAIL(AVERROR(EINVAL));
}
@@ -569,7 +569,7 @@ static int parse_frames(void *log_ctx, int **frames, int *nb_frames,
/* check on monotonicity */
if (i && (*frames)[i-1] > (*frames)[i]) {
av_log(log_ctx, AV_LOG_ERROR,
- "Specified frame %d is greater than the following frame %d\n",
+ "Specified frame %d is smaller than the last frame %d\n",
(*frames)[i], (*frames)[i-1]);
FAIL(AVERROR(EINVAL));
}