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

MPEG-4 decoder: mp4stream.c bug ?

kd7
Beginner
332 Views
I found something like that in IPP5.0 sample:

Ipp8u* mp4_FindStartCodeOrShortPtr(mp4_Info* pInfo)
{
...
// short_video_header
if (ptr == 0 && ptr[i + 1] == 0 && (ptr[i + 2] & 0xFC) == 0x80) {
return ptr;
}
...
}

Are you sure that it is correct ? The position of the header is ptr, so I think this function should
return ptr+i;

Am I right ?
0 Kudos
2 Replies
Intel_C_Intel
Employee
332 Views

Message Edited by chenm001 on 09-24-2005 02:51 AM

0 Kudos
Vladimir_Dudnik
Employee
332 Views

That's right, thanks Vladimir

0 Kudos
Reply