Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.

Problem about the FWVideoRender

walkdeath
Beginner
527 Views
After a few days of disscussion the MPEG4 decoder issue with Scott, he solve the problem. But whenever I use Scott's or Vladimir's code, there is always a "segmentation fault" when I run my decoder.
I have looked into this problem for a long time, and have found something.
First, problem comes here,
umcRes = dst.RenderFrame();
Then I turn into the function RenderFrame of FWVideoRender, problem comes here,
for (int i = 0; i < m_SrcInfo.height; i++)
{
umcRes = m_pFileWriter->PutData((unsigned char *)m_Buffers[m_iReadIndex].surface + i * m_nPitch, nbytes);
if (UMC_OK != umcRes)
break;
}
the first for loop in "RenderFrame".
Then I looking into PutDat a in "FileWriter", problem comes here,
if((UMC_OK == ret) && (tmp_size <= m_uiPageSize * 1024))
{
memcpy(m_pbBuffer + m_stPos, (unsigned char*)data + bufsize, tmp_size);
m_stPos += tmp_size;
break;
}
Finally, the memcpy function is wrong. Maybe there is something wrong with the pointer, But I don't know how to fix it.
I hope someone could give me some suggestion, and this problem is very important to me. Thanks very much.

PS:I build my application in Fedora Core4.

Wu Yu
0 Kudos
1 Reply
Vladimir_Dudnik
Employee
527 Views
Thanks for finding the issue. Could you please submitt bug report through Intel Premier Support
Regards,
Vladimir
0 Kudos
Reply