Fix alignment issues: subtitles work on 64bit now

Since when is an AVFrame.ByReference an int?
Improve code formatting