phoboslab / pl_mpeg

Single file C library for decoding MPEG1 Video and MP2 Audio
774 stars 57 forks source link

Corrupted video on GBA #22

Open interdpth opened 2 years ago

interdpth commented 2 years ago

Hello, great library. I am attempting to play a video on the GBA the library compiles fine with devkitpro. However everything decoded is corrupted. For example, my first frame should be completely black. But when grabbing a frame with the library on the gameboy advance it has randomish characters like 7e 6e 0f 0f 00 44 44 FF FF FF instead of being 0's. I can send the project to an email or upload here if interested. It would be awesome if you were. I did verify the same code on windows works. So I know it's GBA specific just not sure what.

Thanks!

interdpth commented 2 years ago

I was thinking it was file endianess, so I did a swap and the library refused to play it at all. So I know it's not that.

interdpth commented 2 years ago

it's due to memory.

Zero3K commented 2 years ago

Does it act any differently when using the latest source code?