summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikko Rasa <tdb@tdb.fi>2014-02-08 19:50:36 +0200
committerMikko Rasa <tdb@tdb.fi>2014-02-08 19:50:36 +0200
commit3a971da000da1f4c6aea5cb95323c8b817db78fe (patch)
tree0428e7a22014f3fb7a5dec80a4e51905edb787a4
parent9443b4022c85a02811ba07785c0286d2f8bfaaae (diff)
downloadxine-lib-3a971da000da1f4c6aea5cb95323c8b817db78fe.tar.gz
xine-lib-3a971da000da1f4c6aea5cb95323c8b817db78fe.tar.bz2
Check for correct spu_channel in HDMV decoder
-rw-r--r--src/spu_dec/spuhdmv_decoder.c3
1 files changed, 3 insertions, 0 deletions
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;