instead of custom and bloated code to find an index into a w/h array. Originally committed as revision 21113 to svn://svn.ffmpeg.org/ffmpeg/trunk
Originally committed as revision 21109 to svn://svn.ffmpeg.org/ffmpeg/trunk