Mercurial > mplayer.hg
changeset 9442:8e205102fc8a
Fix "invalid fragment" handling.
author | ranma |
---|---|
date | Sun, 16 Feb 2003 01:23:10 +0000 |
parents | 85fa92f14e99 |
children | 7df93217d82c |
files | spudec.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/spudec.c Sat Feb 15 22:24:32 2003 +0000 +++ b/spudec.c Sun Feb 16 01:23:10 2003 +0000 @@ -506,6 +506,7 @@ 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;