- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There is only a single PCM record entry for G711 but GetInfoU will return 2 for
pInfo->nPcmTypes, which reads off the end of an array. GetInfoA is correct.
-justin
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Justin,
Perhaps this forum thread will help answer the question:
Paul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry, I still don't see how this can work without running off the end of the array.
uscg711.c GetInfoU() sets:
pInfo->nPcmTypes = 2;
pInfo->pPcmTypesTbl = pcmTypesTbl_G711;
A search for nPcmTypes shows a function SetUSCEncoderPCMType() iterating over the pcmTypesTbl_G711 using nPcmTypes as the upper bound:
for(i=0;ipInfo->nPcmTypes;i++) {
pcmTypesTbl_G711 has only 1 record.
What am I missing?
thanks.
uscg711.c GetInfoU() sets:
pInfo->nPcmTypes = 2;
pInfo->pPcmTypesTbl = pcmTypesTbl_G711;
A search for nPcmTypes shows a function SetUSCEncoderPCMType() iterating over the pcmTypesTbl_G711 using nPcmTypes as the upper bound:
for(i=0;i
pcmTypesTbl_G711 has only 1 record.
What am I missing?
thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - jmatthewsr
Sorry, I still don't see how this can work without running off the end of the array.
uscg711.c GetInfoU() sets:
pInfo->nPcmTypes = 2;
pInfo->pPcmTypesTbl = pcmTypesTbl_G711;
A search for nPcmTypes shows a function SetUSCEncoderPCMType() iterating over the pcmTypesTbl_G711 using nPcmTypes as the upper bound:
for(i=0;ipInfo->nPcmTypes;i++) {
pcmTypesTbl_G711 has only 1 record.
What am I missing?
thanks.
uscg711.c GetInfoU() sets:
pInfo->nPcmTypes = 2;
pInfo->pPcmTypesTbl = pcmTypesTbl_G711;
A search for nPcmTypes shows a function SetUSCEncoderPCMType() iterating over the pcmTypesTbl_G711 using nPcmTypes as the upper bound:
for(i=0;i
pcmTypesTbl_G711 has only 1 record.
What am I missing?
thanks.
Hello,
thank you very much for using IPP USC codecs and finding a bug.
Thisis definitely a bug andit will be fixed in one of the nearest IPP samples release.
Vyacheslav, IPP speech

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page