summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Reufer <thomas@reufer.ch>2014-09-29 21:33:25 +0200
committerThomas Reufer <thomas@reufer.ch>2014-09-29 21:33:25 +0200
commit0f3194b2021c98abaefc6d35d67457fafeb7107c (patch)
treed26f6eb4a03ced043a4ea3d0e7e4deda8ca9a571
parent74e46362b8dd8e6f5497dabfa11bc24f62073990 (diff)
downloadvdr-plugin-rpihddevice-0f3194b2021c98abaefc6d35d67457fafeb7107c.tar.gz
vdr-plugin-rpihddevice-0f3194b2021c98abaefc6d35d67457fafeb7107c.tar.bz2
fix packet length check for audio pass through
-rw-r--r--audio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio.c b/audio.c
index 508556d..9cf9f17 100644
--- a/audio.c
+++ b/audio.c
@@ -969,7 +969,7 @@ void cRpiAudioDecoder::Action(void)
int len = m_parser->Packet()->size;
// enough space in current buffer?
- if (len <= (signed)(buf->nAllocLen - buf->nFilledLen))
+ if (len > (signed)(buf->nAllocLen - buf->nFilledLen))
{
// rise reset flag if packet is even bigger than
// allocated buffer