视频点播数据接收,保存代码片段
static std::ofstream ofstreamHanle;
static bool bFirst = true;
if (bFirst)
{
ofstreamHanle.open("F:/videoOutput.h264", std::ios::out | std::ios::binary);
bFirst = false;
}
ofstreamHanle.write((char*)pucBuffer, dwBufSize);
ofstreamHanle.flush();