Mercurial > libavcodec.hg
changeset 431:1dd34dba2b7c libavcodec
removed invalid buffer handling
author | bellard |
---|---|
date | Sun, 26 May 2002 14:41:53 +0000 |
parents | c38d57874acf |
children | b245457fb912 |
files | mpegaudiodec.c |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mpegaudiodec.c Sun May 26 09:45:45 2002 +0000 +++ b/mpegaudiodec.c Sun May 26 14:41:53 2002 +0000 @@ -1133,7 +1133,7 @@ } s->sample_rate = sample_rate; -#ifdef DEBUG +#if defined(DEBUG) printf("layer%d, %d Hz, %d kbits/s, ", s->layer, s->sample_rate, s->bit_rate); if (s->nb_channels == 2) { @@ -2459,8 +2459,6 @@ len = s->frame_size - len; if (len > buf_size) len = buf_size; - else if (len < 4) - len = buf_size > 4 ? 4 : buf_size; memcpy(s->inbuf_ptr, buf_ptr, len); buf_ptr += len; s->inbuf_ptr += len;