diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2012-03-27 18:06:20 +0400 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2012-03-27 18:06:20 +0400 |
commit | 100ddf360bc774738655964b68c3865453eda931 (patch) | |
tree | 5188d3e1ea465433bf55e212326d33460825e47e | |
parent | 876ac861ad517e6313af15fece0ae1de4f27b456 (diff) |
Validate the decoder output some samples
-rw-r--r-- | decoder/LAVAudio/LAVAudio.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/decoder/LAVAudio/LAVAudio.cpp b/decoder/LAVAudio/LAVAudio.cpp index 10c7435e..3058dd07 100644 --- a/decoder/LAVAudio/LAVAudio.cpp +++ b/decoder/LAVAudio/LAVAudio.cpp @@ -1658,7 +1658,7 @@ HRESULT CLAVAudio::Decode(const BYTE * const p, int buffsize, int &consumed, HRE } // Channel re-mapping and sample format conversion - if (got_frame) { + if (got_frame && m_pFrame->nb_samples > 0) { const DWORD idx_start = out.bBuffer->GetCount(); out.wChannels = m_pAVCtx->channels; |