fedora 14 mp3 flash 爆音的一个解决方法 【firefox浏览器】

刚才多打了一行短线,结果线下的内容都没显示出来….

最好的方法是安装32位的flashplayer

当然安装了flashsquare的也有办法解决,如下:
http://blog.csdn.net/qtldr/archive/2011/03/08/6232591.aspx

编译文件 gcc -O2 -c mymemcpy.c

#include <sys/types.h>
void *memcpy(void *dst, const void *src, size_t size)
{
void *orig = dst;
asm volatile(“rep ; movsq”
:”=D” (dst), “=S” (src)
:”0″ (dst), “1” (src), “c” (size >> 3)
:”memory”);
asm volatile(“rep ; movsb”
:”=D” (dst), “=S” (src)
:”0″ (dst), “1” (src), “c” (size & 7)
:”memory”);
return orig;
}

作.so(共享库)文件
ld -G mymemcpy.o -o mymemcpy.so

把mymemcpy.so文件复制到系统目录,/usr/lib64

打开/usr/bin/firefox文件,找到最后一行注释(##mozilla work.),然后在下面插入一下代码.

export LD_PRELOAD=/usr/lib64/mymemcpy.so

之后保存,重启firefox

Advertisements

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s