[MPlayer-users] Bug: Crash with smartblur

Carl Eugen Hoyos cehoyos at ag.or.at
Sun Mar 29 17:11:18 CEST 2009


Alexander Shaduri <ashaduri <at> gmail.com> writes:

> I have a crash with MPlayer r29096, when invoking it
> on any file like this:
> mplayer -vf scale,smartblur=0.3:-1:0 <file>

A possible workaround follows inlined, I have no idea if it is correct.
(Actual crash is in line 2146 of libswscale/swscale.c: memcpy)

Carl Eugen

Index: libmpcodecs/vf_smartblur.c
===================================================================
--- libmpcodecs/vf_smartblur.c  (revision 29081)
+++ libmpcodecs/vf_smartblur.c  (working copy)
@@ -87,7 +87,7 @@
        SwsVector *vec;
        SwsFilter swsF;

-       vec = sws_getGaussianVec(f->radius, f->quality);
+       vec = sws_getGaussianVec(f->radius + 0.5, f->quality);
        sws_scaleVec(vec, f->strength);
        vec->coeff[vec->length/2]+= 1.0 - f->strength;
        swsF.lumH= swsF.lumV= vec;





More information about the MPlayer-users mailing list