diff options
author | Grigori Goronzy <greg@blackbox> | 2009-07-21 02:39:52 +0200 |
---|---|---|
committer | Grigori Goronzy <greg@blackbox> | 2009-07-21 02:39:52 +0200 |
commit | f7f50dfb6335b3d2c1f1fa85a1e496ed2abf6d27 (patch) | |
tree | f22611c3bdfafa84b61d2b5f548db74594c68ba9 /libass/ass_utils.h | |
parent | 1bbf325019a2ab0ead277cf1af8af6e63157e851 (diff) | |
download | libass-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libass/ass_utils.h b/libass/ass_utils.h index a906ca57..39132903 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); |