|
|
|
@ -520,7 +520,8 @@ void DummySink::afterGettingFrame(unsigned frameSize, unsigned numTruncatedBytes |
|
|
|
if ((m_pSession->getWM() & MS_MODE_DECODE_FRAMES) && canDecode()){ |
|
|
|
int ret = avcodec_send_packet( m_pCodecContext, &m_sAvPkt ); |
|
|
|
if( ret < 0 ){ |
|
|
|
LOG_ERROR("Error Send Packet to Decoder!"); |
|
|
|
//No error here - just icomplete data to decode frame
|
|
|
|
//LOG_ERROR("Error Send Packet to Decoder!");
|
|
|
|
}; |
|
|
|
while ( ret >= 0 ) { |
|
|
|
ret = avcodec_receive_frame( m_pCodecContext, m_pFrame ); |
|
|
|
|