Mercurial > libavcodec.hg
changeset 602:d8d23aae4ac3 libavcodec
* resync without endless loop
author | kabi |
---|---|
date | Fri, 09 Aug 2002 10:43:02 +0000 |
parents | 76e9b51cccda |
children | 442dede8795b |
files | mpegaudiodec.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mpegaudiodec.c Fri Aug 09 00:13:54 2002 +0000 +++ b/mpegaudiodec.c Fri Aug 09 10:43:02 2002 +0000 @@ -2397,8 +2397,10 @@ if (len > buf_size) len = buf_size; if (len == 0) { - /* frame too long: resync */ + /* frame too long: resync */ s->frame_size = 0; + memcpy(s->inbuf, s->inbuf + 1, s->inbuf_ptr - s->inbuf - 1); + s->inbuf_ptr--; } else { UINT8 *p, *pend; UINT32 header1;