diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-09-14 05:55:11 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-09-19 01:08:24 +0200 |
commit | 1301942248f14bc18c02d984200d836e28b7dfd2 (patch) | |
tree | da5c93da1b7f406382cafbe66870a29526cc6adf | |
parent | e2c7b37fd225d9e41c913bd21a5b481c78a11019 (diff) | |
download | ffmpeg-1301942248f14bc18c02d984200d836e28b7dfd2.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>
(cherry picked from commit 3581ab6ce0754544b06f34f7875b731a5ca2e061)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-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 ec7e882c31..283bf04a3d 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; |