aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mpegaudio_parser.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-09-14 05:55:11 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-09-14 05:55:11 +0200
commit93b240f4a59348c07d3d7e4862227f6949c51e14 (patch)
treeff9fff1c39851d53daae392b86ead365b5498e06 /libavcodec/mpegaudio_parser.c
parent570931d411235efdefe0339bcab1ea15ae845da6 (diff)
downloadffmpeg-93b240f4a59348c07d3d7e4862227f6949c51e14.tar.gz
mpegaudio_parser: reset state to prevent it to be random
Fixes Ticket1718 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mpegaudio_parser.c')
-rw-r--r--libavcodec/mpegaudio_parser.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/mpegaudio_parser.c b/libavcodec/mpegaudio_parser.c
index afa297551c..5f97d711c6 100644
--- a/libavcodec/mpegaudio_parser.c
+++ b/libavcodec/mpegaudio_parser.c
@@ -54,6 +54,7 @@ static int mpegaudio_parse(AVCodecParserContext *s1,
int inc= FFMIN(buf_size - i, s->frame_size);
i += inc;
s->frame_size -= inc;
+ state = 0;
if(!s->frame_size){
next= i;