Sufficently large timeValue and timeScale arguments to MediaTime will cause wrapping in toTimeScale().
Created attachment 303239 [details] Patch
Created attachment 303253 [details] Patch
Created attachment 303254 [details] Patch
Comment on attachment 303254 [details] Patch r=me. I believe in the maths.
Created attachment 303264 [details] Patch for landing Added a couple more tests to ensure that large timeScale values didn\'t cause a overflow.
rdar://problem/30812277
Created attachment 303265 [details] Patch for landing And one more to take care of the Windows EWS warnings about int => uint32_t conversion.
Committed r213324: <http://trac.webkit.org/changeset/213324>