Working cpu version
Not working, forgot boundary check, again...
Correct for mp4, cpu version for mp5