[FFmpeg-cvslog] mpegaudio_parser: reset state to prevent it to be random

Michael Niedermayer git at videolan.org
Sat Sep 15 01:57:30 CEST 2012


ffmpeg | branch: release/0.11 | Michael Niedermayer <michaelni at gmx.at> | Fri Sep 14 05:55:11 2012 +0200| [3581ab6ce0754544b06f34f7875b731a5ca2e061] | committer: Michael Niedermayer

mpegaudio_parser: reset state to prevent it to be random

Fixes Ticket1718

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit 93b240f4a59348c07d3d7e4862227f6949c51e14)

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3581ab6ce0754544b06f34f7875b731a5ca2e061
---

 libavcodec/mpegaudio_parser.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/mpegaudio_parser.c b/libavcodec/mpegaudio_parser.c
index 18c224f..6ceca83 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;



More information about the ffmpeg-cvslog mailing list