Mercurial > libavformat.hg
changeset 4768:667428b99cc3 libavformat
Move "- 12" statement up a bit. See "[PATCH] rmdec.c: prevent zero-length
packets" thread.
author | rbultje |
---|---|
date | Sat, 21 Mar 2009 19:18:07 +0000 |
parents | 2da42f33de42 |
children | 6fff7e0861fc |
files | rmdec.c |
diffstat | 1 files changed, 1 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/rmdec.c Sat Mar 21 15:52:14 2009 +0000 +++ b/rmdec.c Sat Mar 21 19:18:07 2009 +0000 @@ -536,16 +536,13 @@ if(state > (unsigned)0xFFFF || state < 12) continue; - len=state; + len=state - 12; state= 0xFFFFFFFF; num = get_be16(pb); *timestamp = get_be32(pb); res= get_byte(pb); /* reserved */ *flags = get_byte(pb); /* flags */ - - - len -= 12; } for(i=0;i<s->nb_streams;i++) { st = s->streams[i];