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-07-10 00:22:08 +0400
committerHendrik Leppkes <h.leppkes@gmail.com>2012-07-10 00:22:08 +0400
commitf1b094f14375ce8688c9134aa94c1deb95ea3dce (patch)
treef278bdd6fe9352d7a39bbde58979a5aca2e3a5d8 /decoder/LAVAudio
parent8f2a185be963ad3f43d9a4f9bedde9081e626194 (diff)
Don't send 0-sized frames to the decoder
Diffstat (limited to 'decoder/LAVAudio')
-rw-r--r--decoder/LAVAudio/LAVAudio.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/decoder/LAVAudio/LAVAudio.cpp b/decoder/LAVAudio/LAVAudio.cpp
index dee37ef7..97abc137 100644
--- a/decoder/LAVAudio/LAVAudio.cpp
+++ b/decoder/LAVAudio/LAVAudio.cpp
@@ -1428,6 +1428,9 @@ HRESULT CLAVAudio::Receive(IMediaSample *pIn)
}
long len = pIn->GetActualDataLength();
+ if (len == 0) {
+ return S_OK;
+ }
(static_cast<CDeCSSInputPin*>(m_pInput))->StripPacket(pDataIn, len);