summaryrefslogtreecommitdiffstats
path: root/libass/ass_utils.h
diff options
context:
space:
mode:
authorGrigori Goronzy <greg@blackbox>2009-07-21 02:39:52 +0200
committerGrigori Goronzy <greg@blackbox>2009-07-21 02:39:52 +0200
commitf7f50dfb6335b3d2c1f1fa85a1e496ed2abf6d27 (patch)
treef22611c3bdfafa84b61d2b5f548db74594c68ba9 /libass/ass_utils.h
parent1bbf325019a2ab0ead277cf1af8af6e63157e851 (diff)
downloadlibass-f7f50dfb6335b3d2c1f1fa85a1e496ed2abf6d27.tar.bz2
libass-f7f50dfb6335b3d2c1f1fa85a1e496ed2abf6d27.tar.xz
Clamp clip rectangle to frame size
Make sure the clip rectangle is inside the screen boundaries. Idea by Evgeniy Stepanov.
Diffstat (limited to 'libass/ass_utils.h')
-rw-r--r--libass/ass_utils.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libass/ass_utils.h b/libass/ass_utils.h
index a906ca5..3913290 100644
--- a/libass/ass_utils.h
+++ b/libass/ass_utils.h
@@ -43,6 +43,7 @@
#define FFMAX(a,b) ((a) > (b) ? (a) : (b))
#define FFMIN(a,b) ((a) > (b) ? (b) : (a))
+#define FFMINMAX(c,a,b) FFMIN(FFMAX(c, a), b)
int mystrtoi(char **p, int *res);
int mystrtoll(char **p, long long *res);