Intel® Integrated Performance Primitives
Community support and discussions relating to developing high-performance vision, signal, security, and storage applications.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!

MPEG-4 decoder: mp4stream.c bug ?

kd7
Beginner
116 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
116 Views

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

Vladimir_Dudnik
Employee
116 Views

That's right, thanks Vladimir

Reply