disable ECed output for nodelay decoding
This commit is contained in:
parent
5cf163449f
commit
ecd6102688
@ -399,21 +399,21 @@ DECODING_STATE CWelsDecoder::DecodeFrameNoDelay (const unsigned char* kpSrc,
|
|||||||
unsigned char** ppDst,
|
unsigned char** ppDst,
|
||||||
SBufferInfo* pDstInfo) {
|
SBufferInfo* pDstInfo) {
|
||||||
int iRet;
|
int iRet;
|
||||||
SBufferInfo sTmpBufferInfo;
|
//SBufferInfo sTmpBufferInfo;
|
||||||
unsigned char* ppTmpDst[3] = {NULL, NULL, NULL};
|
//unsigned char* ppTmpDst[3] = {NULL, NULL, NULL};
|
||||||
|
|
||||||
iRet = (int) DecodeFrame2 (kpSrc, kiSrcLen, ppDst, pDstInfo);
|
iRet = (int) DecodeFrame2 (kpSrc, kiSrcLen, ppDst, pDstInfo);
|
||||||
memcpy (&sTmpBufferInfo, pDstInfo, sizeof (SBufferInfo));
|
//memcpy (&sTmpBufferInfo, pDstInfo, sizeof (SBufferInfo));
|
||||||
ppTmpDst[0] = ppDst[0];
|
//ppTmpDst[0] = ppDst[0];
|
||||||
ppTmpDst[1] = ppDst[1];
|
//ppTmpDst[1] = ppDst[1];
|
||||||
ppTmpDst[2] = ppDst[2];
|
//ppTmpDst[2] = ppDst[2];
|
||||||
iRet |= DecodeFrame2 (NULL, 0, ppDst, pDstInfo);
|
iRet |= DecodeFrame2 (NULL, 0, ppDst, pDstInfo);
|
||||||
if ((pDstInfo->iBufferStatus == 0) && (sTmpBufferInfo.iBufferStatus == 1)) {
|
//if ((pDstInfo->iBufferStatus == 0) && (sTmpBufferInfo.iBufferStatus == 1)) {
|
||||||
memcpy (pDstInfo, &sTmpBufferInfo, sizeof (SBufferInfo));
|
//memcpy (pDstInfo, &sTmpBufferInfo, sizeof (SBufferInfo));
|
||||||
ppDst[0] = ppTmpDst[0];
|
//ppDst[0] = ppTmpDst[0];
|
||||||
ppDst[1] = ppTmpDst[1];
|
//ppDst[1] = ppTmpDst[1];
|
||||||
ppDst[2] = ppTmpDst[2];
|
//ppDst[2] = ppTmpDst[2];
|
||||||
}
|
//}
|
||||||
|
|
||||||
return (DECODING_STATE) iRet;
|
return (DECODING_STATE) iRet;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user