diff options
author | Grigori Goronzy <greg@chown.ath.cx> | 2011-08-19 05:05:55 +0200 |
---|---|---|
committer | Grigori Goronzy <greg@chown.ath.cx> | 2015-07-10 10:42:40 +0200 |
commit | 618b38a5c80e468654a64d3ede10fd99f5fd8a7e (patch) | |
tree | 1352482f4569610cf243fb33f393efe5600246d2 /libass | |
parent | b39fc626727165bd3f82900e293136d9b18deb10 (diff) | |
download | libass-618b38a5c80e468654a64d3ede10fd99f5fd8a7e.tar.bz2 libass-618b38a5c80e468654a64d3ede10fd99f5fd8a7e.tar.xz |
Fix weight validity check
Diffstat (limited to 'libass')
-rw-r--r-- | libass/ass_fontselect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libass/ass_fontselect.c b/libass/ass_fontselect.c index e94fc9e4..aea3c230 100644 --- a/libass/ass_fontselect.c +++ b/libass/ass_fontselect.c @@ -186,7 +186,7 @@ ass_font_provider_add_font(ASS_FontProvider *provider, // check slant/weight for validity, use defaults if they're invalid if (weight < 100 || weight > 900) - meta->weight = 400; + weight = 400; if (slant < 0 || slant > 110) slant = 0; |