Mercurial > libavcodec.hg
changeset 6730:362abbd862f1 libavcodec
move call to init_get_bits inside conditional
author | jbr |
---|---|
date | Fri, 02 May 2008 21:35:32 +0000 |
parents | 071888974d8a |
children | 998990a4cccd |
files | flac.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/flac.c Fri May 02 21:34:34 2008 +0000 +++ b/flac.c Fri May 02 21:35:32 2008 +0000 @@ -104,11 +104,11 @@ 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); } }