Esempio n. 1
0
STDMETHODIMP CDecodeThread::ClearQueues()
{
  // Release input sample
  ReleaseSample();

  // Release output samples
  {
    CAutoLock lock(&m_Output);
    while (LAVFrame *pFrame = m_Output.Pop()) {
      ReleaseFrame(&pFrame);
    }
  }

  return S_OK;
}
/*
 * 函数功能: 释放内存中存存放的字典压缩文件
 * 参数1:    文件指针
 * */
void ReleaseDF(struct DF *fp)
{
	if(!fp)
		return ;

	Byte **map = fp->pm ;
	int i =0 ;
	for(i=0;i<ROW_LEN;i++)
	{
		ReleaseSample((void *)fp->smp[i]);
		free(map[i]);
		map[i]=NULL;
	}
	free(fp);
}