Add a bounds check to writeVideoImageWithRange().

Fixes crash in Jeanne d' Arc, which sends 480x480.
Ignore pixel mode -1 in psmf, seems to default?

This makes videos play fine in Sword Art Online.
Merge pull request #2038 from unknownbrackets/mpeg-fix

Add a bounds check to writeVideoImageWithRange()