Fixing compilation warnings
Clean up H.264 encoder