mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
mpegaudio_parser: reset state to prevent it to be random
Fixes Ticket1718 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
570931d411
commit
93b240f4a5
@ -54,6 +54,7 @@ static int mpegaudio_parse(AVCodecParserContext *s1,
|
|||||||
int inc= FFMIN(buf_size - i, s->frame_size);
|
int inc= FFMIN(buf_size - i, s->frame_size);
|
||||||
i += inc;
|
i += inc;
|
||||||
s->frame_size -= inc;
|
s->frame_size -= inc;
|
||||||
|
state = 0;
|
||||||
|
|
||||||
if(!s->frame_size){
|
if(!s->frame_size){
|
||||||
next= i;
|
next= i;
|
||||||
|
Loading…
Reference in New Issue
Block a user