diff options
author | Petri Hintukainen <phintuka@users.sourceforge.net> | 2014-12-07 13:58:59 +0200 |
---|---|---|
committer | Petri Hintukainen <phintuka@users.sourceforge.net> | 2014-12-07 13:58:59 +0200 |
commit | 19ca873d9c266b5b3598a670f2f018524d3de448 (patch) | |
tree | f910f24456fa948566b31ac4da59309ad48e749b | |
parent | 3ec3cb5f57ba0b2e94990fc292c1fc752d047253 (diff) | |
download | xine-lib-19ca873d9c266b5b3598a670f2f018524d3de448.tar.gz xine-lib-19ca873d9c266b5b3598a670f2f018524d3de448.tar.bz2 |
spuhdmv: fix crash with broken stream
-rw-r--r-- | src/spu_dec/spuhdmv_decoder.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/spu_dec/spuhdmv_decoder.c b/src/spu_dec/spuhdmv_decoder.c index 58b7d31c7..487fa5862 100644 --- a/src/spu_dec/spuhdmv_decoder.c +++ b/src/spu_dec/spuhdmv_decoder.c @@ -643,8 +643,10 @@ static presentation_segment_t *segbuf_decode_presentation_segment(segment_buffer for (index = 0; index < seg->object_number; index++) { composition_object_t *cobj = segbuf_decode_composition_object (buf); - cobj->next = seg->comp_objs; - seg->comp_objs = cobj; + if (cobj) { + cobj->next = seg->comp_objs; + seg->comp_objs = cobj; + } } if (buf->error) { |