diff options
author | Mikko Rasa <tdb@tdb.fi> | 2014-02-08 19:50:36 +0200 |
---|---|---|
committer | Mikko Rasa <tdb@tdb.fi> | 2014-02-08 19:50:36 +0200 |
commit | 3a971da000da1f4c6aea5cb95323c8b817db78fe (patch) | |
tree | 0428e7a22014f3fb7a5dec80a4e51905edb787a4 | |
parent | 9443b4022c85a02811ba07785c0286d2f8bfaaae (diff) | |
download | xine-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.c | 3 |
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; |