diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-09-14 05:55:11 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-09-14 05:55:11 +0200 |
commit | 93b240f4a59348c07d3d7e4862227f6949c51e14 (patch) | |
tree | ff9fff1c39851d53daae392b86ead365b5498e06 /libavcodec/mpegaudio_parser.c | |
parent | 570931d411235efdefe0339bcab1ea15ae845da6 (diff) | |
download | ffmpeg-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.c | 1 |
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; |