diff options
author | ranma <ranma@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-02-16 01:23:10 +0000 |
---|---|---|
committer | ranma <ranma@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-02-16 01:23:10 +0000 |
commit | 3516fe861d2f4eee1d87255bfdeb0194f2acb9e9 (patch) | |
tree | eba069ec6b347f1e3a803bb0c78d8ef5166093f9 /spudec.c | |
parent | 6b9111a0d378a7452663d69d6eddbcb04c4cf827 (diff) | |
download | mpv-3516fe861d2f4eee1d87255bfdeb0194f2acb9e9.tar.bz2 mpv-3516fe861d2f4eee1d87255bfdeb0194f2acb9e9.tar.xz |
Fix "invalid fragment" handling.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9443 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'spudec.c')
-rw-r--r-- | spudec.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -506,6 +506,7 @@ void spudec_assemble(void *this, unsigned char *packet_bytes, unsigned int len, if (last_packet->size < last_packet->offset + len){ mp_msg(MSGT_SPUDEC,MSGL_WARN,"SPUasm: invalid fragment\n"); last_packet->size = last_packet->offset = 0; + return; } else { memcpy(last_packet->data + last_packet->offset, packet_bytes, len); last_packet->offset += len; |