refine code for bug #66
add api convert h264 to rtmp packet, for bug #66