History

remain size to prvent MB residual reading overflow

Licai Guo committed 12 years ago

Commit 7bace841 parent 136931c2 files · +2 −1Browse files

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

Unified · Split

codec/decoder/plus/src/welsDecoderExt.cpp+1−1
@@ -361,7 +361,7 @@ DECODING_STATE CWelsDecoder::DecodeFrame2 (const unsigned char* kpSrc, · 360 unmodified lines
361361 const int kiSrcLen,
362362 void** ppDst,
363363 SBufferInfo* pDstInfo) {
364− if (kiSrcLen > MAX_ACCESS_UNIT_CAPACITY) {
364+ if (kiSrcLen > MAX_ACCESS_UNIT_CAPACITY - MAX_MACROBLOCK_CAPACITY) {//prevent from residual reading overflow
365365 m_pDecContext->iErrorCode |= dsOutOfMemory;
366366 IWelsTrace::WelsVTrace (m_pTrace, IWelsTrace::WELS_LOG_INFO,
367367 "max AU size exceeded. Allowed size = %d, current size = %d",

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