From fad9f495c07be2d990620f5000de075ba2cf1cbd Mon Sep 17 00:00:00 2001 From: Fabrice Bellard Date: Sun, 26 May 2002 14:41:53 +0000 Subject: [PATCH] removed invalid buffer handling Originally committed as revision 604 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/mpegaudiodec.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libavcodec/mpegaudiodec.c b/libavcodec/mpegaudiodec.c index 37bf1ca..1405e6e 100644 --- a/libavcodec/mpegaudiodec.c +++ b/libavcodec/mpegaudiodec.c @@ -1133,7 +1133,7 @@ static int decode_header(MPADecodeContext *s, UINT32 header) } 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 @@ static int decode_frame(AVCodecContext * avctx, 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; -- 2.7.4