diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-09-07 21:06:21 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-09-07 21:06:21 +0000 |
commit | 1625216eaae75427f95684fdaf4d9082ada21aba (patch) | |
tree | 03e7ac6dbe6066af262ee62652f50b0b10b1331f /libswscale/swscale.c | |
parent | 3943bd09018a0648ebc4ca6f8df753360a0aa1e3 (diff) | |
download | ffmpeg-1625216eaae75427f95684fdaf4d9082ada21aba.tar.gz |
Fix accurate rounding mode on x86_64.
Fixes issue222.
Originally committed as revision 27545 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Diffstat (limited to 'libswscale/swscale.c')
-rw-r--r-- | libswscale/swscale.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c index c4b14c9d83..3245521299 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -1293,7 +1293,7 @@ static inline int initFilter(int16_t **outFilter, int16_t **filterPos, int *outF filterSize= (minFilterSize +(filterAlign-1)) & (~(filterAlign-1)); assert(filterSize > 0); filter= av_malloc(filterSize*dstW*sizeof(double)); - if (filterSize >= MAX_FILTER_SIZE || !filter) + if (filterSize >= MAX_FILTER_SIZE*16/((flags&SWS_ACCURATE_RND) ? APCK_SIZE : 16) || !filter) goto error; *outFilterSize= filterSize; |