From 3a971da000da1f4c6aea5cb95323c8b817db78fe Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 8 Feb 2014 19:50:36 +0200 Subject: Check for correct spu_channel in HDMV decoder --- src/spu_dec/spuhdmv_decoder.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/spu_dec/spuhdmv_decoder.c b/src/spu_dec/spuhdmv_decoder.c index 4a32d982c..15f2e733c 100644 --- a/src/spu_dec/spuhdmv_decoder.c +++ b/src/spu_dec/spuhdmv_decoder.c @@ -969,6 +969,9 @@ static void spudec_decode_data (spu_decoder_t * this_gen, buf_element_t * buf) if ((buf->type & 0xffff0000) != BUF_SPU_HDMV) return; + if ((this->stream->spu_channel & 0x1f) != (buf->type & 0x1f)) + return; + if (buf->size < 1) return; -- cgit v1.2.3