projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bbdadbd
)
removed invalid buffer handling
author
Fabrice Bellard
<fabrice@bellard.org>
Sun, 26 May 2002 14:41:53 +0000
(14:41 +0000)
committer
Fabrice Bellard
<fabrice@bellard.org>
Sun, 26 May 2002 14:41:53 +0000
(14:41 +0000)
Originally committed as revision 604 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/mpegaudiodec.c
patch
|
blob
|
history
diff --git
a/libavcodec/mpegaudiodec.c
b/libavcodec/mpegaudiodec.c
index
37bf1ca
..
1405e6e
100644
(file)
--- 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;
-#if
def 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;