ffmpeg | branch: master | Michael Niedermayer <mich...@niedermayer.cc> | Thu Aug 13 00:45:06 2015 +0200| [0ac83047f67bb56406c66d4ca664d3c0cb07c2f2] | committer: Michael Niedermayer
ffmpeg: Print sub2video: rectangle coordinates in case of overflows Signed-off-by: Michael Niedermayer <mich...@niedermayer.cc> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0ac83047f67bb56406c66d4ca664d3c0cb07c2f2 --- ffmpeg.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ffmpeg.c b/ffmpeg.c index f766830..9143e7b 100644 --- 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; } _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog