History

bug fix for nodelay API for buffer storage

huili2 committed 11 years ago

Commit 4d913091 parent 78ab4001 file · +8 −0Browse files

Showing the changes to codec/decoder/plus/src/welsDecoderExt.cpp (1 of 1 file). Show all

Unified · Split

codec/decoder/plus/src/welsDecoderExt.cpp+8−0
@@ -400,11 +400,19 @@ DECODING_STATE CWelsDecoder::DecodeFrameNoDelay (const unsigned char* kpSrc, · 399 unmodified lines
400400 SBufferInfo* pDstInfo) {
401401 int iRet;
402402 SBufferInfo sTmpBufferInfo;
403+ unsigned char* ppTmpDst[3] = {NULL, NULL, NULL};
404+
403405 iRet = (int) DecodeFrame2 (kpSrc, kiSrcLen, ppDst, pDstInfo);
404406 memcpy (&sTmpBufferInfo, pDstInfo, sizeof (SBufferInfo));
407+ ppTmpDst[0] = ppDst[0];
408+ ppTmpDst[1] = ppDst[1];
409+ ppTmpDst[2] = ppDst[2];
405410 iRet |= DecodeFrame2 (NULL, 0, ppDst, pDstInfo);
406411 if ((pDstInfo->iBufferStatus == 0) && (sTmpBufferInfo.iBufferStatus == 1)) {
407412 memcpy (pDstInfo, &sTmpBufferInfo, sizeof (SBufferInfo));
413+ ppDst[0] = ppTmpDst[0];
414+ ppDst[1] = ppTmpDst[1];
415+ ppDst[2] = ppTmpDst[2];
408416 }
409417
410418 return (DECODING_STATE) iRet;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t