Commit 69e104a2 authored by jbr's avatar jbr

move call to init_get_bits inside conditional

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13037 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent fed820b1
......@@ -104,11 +104,11 @@ static av_cold int flac_decode_init(AVCodecContext * avctx)
if (avctx->extradata_size > 4) {
/* initialize based on the demuxer-supplied streamdata header */
init_get_bits(&s->gb, avctx->extradata, avctx->extradata_size*8);
if (avctx->extradata_size == FLAC_STREAMINFO_SIZE) {
ff_flac_parse_streaminfo(avctx, (FLACStreaminfo *)s, avctx->extradata);
allocate_buffers(s);
} else {
init_get_bits(&s->gb, avctx->extradata, avctx->extradata_size*8);
metadata_parse(s);
}
}
......
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