avfilter/vf_shuffleframes: improve error message
authorPaul B Mahol <onemda@gmail.com>
Sun, 20 Oct 2019 09:39:24 +0000 (11:39 +0200)
committerPaul B Mahol <onemda@gmail.com>
Sun, 20 Oct 2019 09:39:24 +0000 (11:39 +0200)
libavfilter/vf_shuffleframes.c

index 8e59511..1f780c7 100644 (file)
@@ -69,7 +69,7 @@ static av_cold int init(AVFilterContext *ctx)
         }
 
         if (s->map[n] < -1 || s->map[n] >= nb_items) {
-            av_log(ctx, AV_LOG_ERROR, "Index out of range.\n");
+            av_log(ctx, AV_LOG_ERROR, "Index %d out of range: [-1, %d].\n", s->map[n], nb_items - 1);
             av_free(mapping);
             return AVERROR(EINVAL);
         }