MPEG4 part 2 common: check remaining bits before peeking

Otherwise the application will crash on 64bit Windows.

Fixes #957.