Browse Source

mpegaudio_parser: reset state to prevent it to be random

Fixes Ticket1718

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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 3581ab6ce0)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.10.5
Michael Niedermayer 13 years ago
parent
commit
1301942248
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavcodec/mpegaudio_parser.c

+ 1
- 0
libavcodec/mpegaudio_parser.c View File

@@ -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;


Loading…
Cancel
Save