Fix crash for invalid mpeg header.

Sometimes, mpeg header is invalid in some games ( caused by some errors?). This may fix crash while mpeg header is invalid.