Mercurial > mplayer.hg
changeset 29164:228817b21ccf
Add algorithm flag (SWS_POINT) to sws_getContext call to avoid a crash.
patch by Alexander Strange, astrange ithinksw com
author | diego |
---|---|
date | Mon, 20 Apr 2009 12:07:08 +0000 |
parents | e5e1ecf7a172 |
children | 55181c28943d |
files | libmpcodecs/vf_sab.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/vf_sab.c Mon Apr 20 03:39:44 2009 +0000 +++ b/libmpcodecs/vf_sab.c Mon Apr 20 12:07:08 2009 +0000 @@ -102,7 +102,7 @@ swsF.lumH= swsF.lumV= vec; swsF.chrH= swsF.chrV= NULL; f->preFilterContext= sws_getContext( - width, height, PIX_FMT_GRAY8, width, height, PIX_FMT_GRAY8, get_sws_cpuflags(), &swsF, NULL, NULL); + width, height, PIX_FMT_GRAY8, width, height, PIX_FMT_GRAY8, get_sws_cpuflags()|SWS_POINT, &swsF, NULL, NULL); sws_freeVec(vec); vec = sws_getGaussianVec(f->strength, 5.0);