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

Michael Niedermayer git at videolan.org
Fri Sep 14 06:00:16 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Sep 14 05:55:11 2012 +0200| [93b240f4a59348c07d3d7e4862227f6949c51e14] | committer: Michael Niedermayer

mpegaudio_parser: reset state to prevent it to be random

Fixes Ticket1718

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

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

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

diff --git a/libavcodec/mpegaudio_parser.c b/libavcodec/mpegaudio_parser.c
index afa2975..5f97d71 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;



More information about the ffmpeg-cvslog mailing list