From 93b240f4a59348c07d3d7e4862227f6949c51e14 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 14 Sep 2012 05:55:11 +0200 Subject: [PATCH] mpegaudio_parser: reset state to prevent it to be random Fixes Ticket1718 Signed-off-by: Michael Niedermayer --- libavcodec/mpegaudio_parser.c | 1 + 1 file changed, 1 insertion(+) 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;