diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-05-19 22:22:45 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-05-19 22:22:45 +0200 |
commit | c5371f775ca13cee114eea2d17e59af5a436a125 (patch) | |
tree | b7cdd97072988301170f1766cd225b671beb35cd | |
parent | 43bc5cf9f457c3a7caabc3781a71dee8dd4086ee (diff) | |
download | ffmpeg-c5371f775ca13cee114eea2d17e59af5a436a125.tar.gz |
mpegaudidec: 10l forgot buf_size
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/mpegaudiodec.c | 4 |
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; |