这个是OK的:

class Rtmp_tool {
public:
  int m_width;
  AVCodecContext * c;

};

指针的用法如下:

Rtmp_tool * rtmp_tool;
rtmp_tool = new Rtmp_tool();
rtmp_tool->m_width = 60;
rtmp_tool->c = c;
return rtmp_tool;