Lines 82-89
Link Here
|
82 |
m_pCodecContext->debug = 0; |
82 |
m_pCodecContext->debug = 0; |
83 |
m_pCodecContext->workaround_bugs = 1; |
83 |
m_pCodecContext->workaround_bugs = 1; |
84 |
|
84 |
|
85 |
if (pCodec->capabilities & CODEC_CAP_TRUNCATED) |
85 |
if (pCodec->capabilities & AV_CODEC_CAP_TRUNCATED) |
86 |
m_pCodecContext->flags |= CODEC_FLAG_TRUNCATED; |
86 |
m_pCodecContext->flags |= AV_CODEC_FLAG_TRUNCATED; |
87 |
|
87 |
|
88 |
m_channels = 0; |
88 |
m_channels = 0; |
89 |
m_pCodecContext->channels = hints.channels; |
89 |
m_pCodecContext->channels = hints.channels; |
Lines 115-121
Link Here
|
115 |
if( hints.extradata && hints.extrasize > 0 ) |
115 |
if( hints.extradata && hints.extrasize > 0 ) |
116 |
{ |
116 |
{ |
117 |
m_pCodecContext->extradata_size = hints.extrasize; |
117 |
m_pCodecContext->extradata_size = hints.extrasize; |
118 |
m_pCodecContext->extradata = (uint8_t*)m_dllAvUtil.av_mallocz(hints.extrasize + FF_INPUT_BUFFER_PADDING_SIZE); |
118 |
m_pCodecContext->extradata = (uint8_t*)m_dllAvUtil.av_mallocz(hints.extrasize + AV_INPUT_BUFFER_PADDING_SIZE); |
119 |
memcpy(m_pCodecContext->extradata, hints.extradata, hints.extrasize); |
119 |
memcpy(m_pCodecContext->extradata, hints.extradata, hints.extrasize); |
120 |
} |
120 |
} |
121 |
|
121 |
|
Lines 235-241
Link Here
|
235 |
|
235 |
|
236 |
if (m_iBufferOutputAlloced < m_iBufferOutputUsed + outputSize) |
236 |
if (m_iBufferOutputAlloced < m_iBufferOutputUsed + outputSize) |
237 |
{ |
237 |
{ |
238 |
m_pBufferOutput = (BYTE*)m_dllAvUtil.av_realloc(m_pBufferOutput, m_iBufferOutputUsed + outputSize + FF_INPUT_BUFFER_PADDING_SIZE); |
238 |
m_pBufferOutput = (BYTE*)m_dllAvUtil.av_realloc(m_pBufferOutput, m_iBufferOutputUsed + outputSize + AV_INPUT_BUFFER_PADDING_SIZE); |
239 |
m_iBufferOutputAlloced = m_iBufferOutputUsed + outputSize; |
239 |
m_iBufferOutputAlloced = m_iBufferOutputUsed + outputSize; |
240 |
} |
240 |
} |
241 |
|
241 |
|