mirror of https://github.com/mstorsjo/fdk-aac.git
Adjust the fix for infinite loops with a drained ADTS stream
This should have less risk of causing other issues.
This commit is contained in:
parent
963b189156
commit
a3d1168943
|
@ -342,7 +342,9 @@ TRANSPORTDEC_ERROR transportDec_FillData(
|
|||
}
|
||||
} else {
|
||||
/* ... else feed bitbuffer with new stream data (append). */
|
||||
FDKfeedBuffer (hBs, pBuffer, bufferSize, pBytesValid);
|
||||
if ((hTp->numberOfRawDataBlocks <= 0) || (FDKgetValidBits(hBs)==0)) {
|
||||
FDKfeedBuffer (hBs, pBuffer, bufferSize, pBytesValid) ;
|
||||
}
|
||||
}
|
||||
|
||||
return TRANSPORTDEC_OK;
|
||||
|
|
Loading…
Reference in New Issue