Patch check script.
Note, before you flame me that its dirty, i did post it to ffmpeg-dev and
asked for a review and threatened to commit.

Originally committed as revision 17055 to svn://svn.ffmpeg.org/ffmpeg/trunk
