Commit 03d3f04f authored by jbr's avatar jbr

flacdec: Allocate buffers right after STREAMINFO is parsed.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17794 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 7f810540
......@@ -250,6 +250,7 @@ static int metadata_parse(FLACContext *s)
if (!s->got_streaminfo) {
ff_flac_parse_streaminfo(s->avctx, (FLACStreaminfo *)s,
s->gb.buffer+get_bits_count(&s->gb)/8);
allocate_buffers(s);
s->got_streaminfo = 1;
}
default:
......@@ -259,8 +260,6 @@ static int metadata_parse(FLACContext *s)
}
} while (!metadata_last);
if (s->got_streaminfo)
allocate_buffers(s);
return 1;
}
return 0;
......
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