Patch by yong ||| y0ngc |a| yahoo dot com ||| Originally committed as revision 6579 to svn://svn.ffmpeg.org/ffmpeg/trunk