aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-05-19 22:22:45 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-05-19 22:22:45 +0200
commitc5371f775ca13cee114eea2d17e59af5a436a125 (patch)
treeb7cdd97072988301170f1766cd225b671beb35cd
parent43bc5cf9f457c3a7caabc3781a71dee8dd4086ee (diff)
downloadffmpeg-c5371f775ca13cee114eea2d17e59af5a436a125.tar.gz
mpegaudidec: 10l forgot buf_size
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/mpegaudiodec.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/mpegaudiodec.c b/libavcodec/mpegaudiodec.c
index 8635d4781a..64cbba8e44 100644
--- a/libavcodec/mpegaudiodec.c
+++ b/libavcodec/mpegaudiodec.c
@@ -1637,8 +1637,10 @@ static int decode_frame(AVCodecContext * avctx, void *data, int *got_frame_ptr,
uint32_t header;
int out_size;
- while(buf_size && !*buf)
+ while(buf_size && !*buf){
buf++;
+ buf_size--;
+ }
if (buf_size < HEADER_SIZE)
return AVERROR_INVALIDDATA;