Commit 93b240f4 authored by Michael Niedermayer's avatar Michael Niedermayer

mpegaudio_parser: reset state to prevent it to be random

Fixes Ticket1718
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 570931d4
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment