avcC for h264 support and other fixes