diff mbox series

[FFmpeg-devel,09/10] avformat/segment: Fix error messages

Message ID 20200907024952.11697-9-andreas.rheinhardt@gmail.com
State Accepted
Commit 1d090dfa911914933a852106234a3ecbfa1dc9ba
Headers show
Series [FFmpeg-devel,01/10] avformat/segment: Don't overwrite AVCodecParameters after init
Related show

Checks

Context Check Description
andriy/default pending
andriy/make success Make finished
andriy/make_fate success Make fate finished

Commit Message

Andreas Rheinhardt Sept. 7, 2020, 2:49 a.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
---
 libavformat/segment.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/libavformat/segment.c b/libavformat/segment.c
index 0253b750b8..3dcbda6957 100644
--- a/libavformat/segment.c
+++ b/libavformat/segment.c
@@ -511,7 +511,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));
         }
@@ -561,7 +561,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));
         }
@@ -570,7 +570,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));
         }