clean up ffmpeg-code, remove deprecated calls and unused structs.