aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-09-14 05:55:11 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-09-15 00:15:35 +0200
commit3581ab6ce0754544b06f34f7875b731a5ca2e061 (patch)
tree516ec1b59ce9f3f468189948d49c10f8fee75388
parentf1ec792ae3011531d47070144b8c91d58bb3e76f (diff)
downloadffmpeg-3581ab6ce0754544b06f34f7875b731a5ca2e061.tar.gz
mpegaudio_parser: reset state to prevent it to be random
Fixes Ticket1718 Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 93b240f4a59348c07d3d7e4862227f6949c51e14) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-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 18c224f76c..6ceca83e04 100644
--- a/libavcodec/mpegaudio_parser.c
+++ b/libavcodec/mpegaudio_parser.c
@@ -53,6 +53,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;