Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/LAVFilters.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2012-03-27 18:06:20 +0400
committerHendrik Leppkes <h.leppkes@gmail.com>2012-03-27 18:06:20 +0400
commit100ddf360bc774738655964b68c3865453eda931 (patch)
tree5188d3e1ea465433bf55e212326d33460825e47e
parent876ac861ad517e6313af15fece0ae1de4f27b456 (diff)
Validate the decoder output some samples
-rw-r--r--decoder/LAVAudio/LAVAudio.cpp2
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;