diff options
author | wm4 <wm4@nowhere> | 2015-07-11 23:00:26 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-07-11 23:09:59 +0200 |
commit | 583f04862fd899ca4c30909149536a3dc0a86c01 (patch) | |
tree | 3f012a2011ad0b8a46e3b8878f536cc07c1f4da6 | |
parent | 1c55ca966f356030a863479459055c48e98ed1e5 (diff) | |
download | libass-583f04862fd899ca4c30909149536a3dc0a86c01.tar.bz2 libass-583f04862fd899ca4c30909149536a3dc0a86c01.tar.xz |
directwrite: don't crash on unknown DWRITE_FONT_STRETCH
The existing code doesn't even handle all currently defined values
for it, and nothing says no new values are ever going to be added.
-rw-r--r-- | libass/ass_directwrite.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libass/ass_directwrite.c b/libass/ass_directwrite.c index 483af50..0ce1478 100644 --- a/libass/ass_directwrite.c +++ b/libass/ass_directwrite.c @@ -475,7 +475,7 @@ static int map_width(enum DWRITE_FONT_STRETCH stretch) case DWRITE_FONT_STRETCH_EXTRA_EXPANDED: return 150; case DWRITE_FONT_STRETCH_ULTRA_EXPANDED: return 200; default: - assert(0); + return FONT_WIDTH_NORMAL; } } |