This is a great piece of code. I tried and works excelent width provided sample video file. I had to make small modifications to the code. But unfortunately i can't make this code run width any other MPEG 1 video.
Christian,
Thanks for your comments. Note that the example code decodes mpeg files as per the 11172-2 standard. The problems you're probably experiencing are because the mpeg files you're using are MPEG layer I (11172-1) consisting of packs and packets. This functionality would need to be added to support such files.