diff options
author | clsid2 <clsid2@users.sourceforge.net> | 2011-08-27 16:27:08 +0400 |
---|---|---|
committer | clsid2 <clsid2@users.sourceforge.net> | 2011-08-27 16:27:08 +0400 |
commit | 850f59d80c16db1d3bc1f557dfb158b7d4133d62 (patch) | |
tree | e4ba8662248f7375cdbc205823c2d17523dfdf1d /src/Subtitles | |
parent | df64cd1117855cc4f9d7f7d365d9d3d25c039a32 (diff) |
Fixed crash regression for certain ass subs with very long lines.
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@3705 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/Subtitles')
-rw-r--r-- | src/Subtitles/Rasterizer.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/Subtitles/Rasterizer.cpp b/src/Subtitles/Rasterizer.cpp index 431e28be8..0928fa129 100644 --- a/src/Subtitles/Rasterizer.cpp +++ b/src/Subtitles/Rasterizer.cpp @@ -757,10 +757,6 @@ bool Rasterizer::Rasterize(int xsub, int ysub, int fBlur, double fGaussianBlur) // fixed image height
mOverlayHeight=((height+14)>>3) + 1;
- if(mOverlayWidth > 3300 || mOverlayHeight > 3300) { //avoid overflow
- return false;
- }
-
mpOverlayBuffer = (byte*)_aligned_malloc(2 * mOverlayWidth * mOverlayHeight, 16);
if(!mpOverlayBuffer) {
return false;
|