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/welsDecoderExt.cpp (1 of 5 files). Show all

Unified · Split

codec/decoder/plus/src/welsDecoderExt.cpp+2−5
@@ -49,6 +49,7 @@ · 48 unmodified lines
49 49
50//#include "macros.h"50//#include "macros.h"
51#include "decoder.h"51#include "decoder.h"
52#include "decoder_core.h"
52 53
53extern "C" {54extern "C" {
54#include "decoder_core.h"55#include "decoder_core.h"
@@ -322,11 +323,7 @@ DECODING_STATE CWelsDecoder::DecodeFrame2 (const unsigned char* kpSrc, · 267 unmodified lines
322 const int kiSrcLen,323 const int kiSrcLen,
323 unsigned char** ppDst,324 unsigned char** ppDst,
324 SBufferInfo* pDstInfo) {325 SBufferInfo* pDstInfo) {
325 if (kiSrcLen > MAX_ACCESS_UNIT_CAPACITY - MAX_MACROBLOCK_CAPACITY) {//prevent from residual reading overflow326 if (CheckBsBuffer (m_pDecContext, kiSrcLen)) {
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);
330 return dsOutOfMemory;327 return dsOutOfMemory;
331 }328 }
332 if (kiSrcLen > 0 && kpSrc != NULL) {329 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