[FFmpeg-cvslog] mpegaudio_parser: reset state to prevent it to be random
Michael Niedermayer
git at videolan.org
Wed Sep 19 02:32:42 CEST 2012
ffmpeg | branch: release/0.10 | Michael Niedermayer <michaelni at gmx.at> | Fri Sep 14 05:55:11 2012 +0200| [1301942248f14bc18c02d984200d836e28b7dfd2] | 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>
(cherry picked from commit 3581ab6ce0754544b06f34f7875b731a5ca2e061)
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1301942248f14bc18c02d984200d836e28b7dfd2
---
libavcodec/mpegaudio_parser.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/mpegaudio_parser.c b/libavcodec/mpegaudio_parser.c
index ec7e882..283bf04 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