]> git.sesse.net Git - ffmpeg/commitdiff
ffmpeg: Print sub2video: rectangle coordinates in case of overflows
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 12 Aug 2015 22:45:06 +0000 (00:45 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 15 Aug 2015 15:41:48 +0000 (17:41 +0200)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
ffmpeg.c

index f76683046d465813a49c6a1e762c85507e9a1a89..9143e7bd7d1d6a1aed2aa80158abe63644b4e271 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -193,7 +193,9 @@ static void sub2video_copy_rect(uint8_t *dst, int dst_linesize, int w, int h,
         return;
     }
     if (r->x < 0 || r->x + r->w > w || r->y < 0 || r->y + r->h > h) {
-        av_log(NULL, AV_LOG_WARNING, "sub2video: rectangle overflowing\n");
+        av_log(NULL, AV_LOG_WARNING, "sub2video: rectangle (%d %d %d %d) overflowing %d %d\n",
+            r->x, r->y, r->w, r->h, w, h
+        );
         return;
     }