History

enable dynamic AU size in decoder

huili2 committed 12 years ago

Commit bed18c21 parent 7de6eb25 files · +81 −14Browse files

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

Unified · Split

codec/decoder/plus/src/welsDecoderExt.cpp+2−5
@@ -49,6 +49,7 @@ · 48 unmodified lines
4949
5050 //#include "macros.h"
5151 #include "decoder.h"
52+#include "decoder_core.h"
5253
5354 extern "C" {
5455 #include "decoder_core.h"
@@ -322,11 +323,7 @@ DECODING_STATE CWelsDecoder::DecodeFrame2 (const unsigned char* kpSrc, · 267 unmodified lines
322323 const int kiSrcLen,
323324 unsigned char** ppDst,
324325 SBufferInfo* pDstInfo) {
325− if (kiSrcLen > MAX_ACCESS_UNIT_CAPACITY - MAX_MACROBLOCK_CAPACITY) {//prevent from residual reading overflow
326− m_pDecContext->iErrorCode |= dsOutOfMemory;
327− IWelsTrace::WelsVTrace (m_pTrace, IWelsTrace::WELS_LOG_INFO,
328− "max AU size exceeded. Allowed size = %d, current size = %d",
329− MAX_ACCESS_UNIT_CAPACITY - MAX_MACROBLOCK_CAPACITY, kiSrcLen);
326+ if (CheckBsBuffer (m_pDecContext, kiSrcLen)) {
330327 return dsOutOfMemory;
331328 }
332329 if (kiSrcLen > 0 && kpSrc != NULL) {

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