summaryrefslogtreecommitdiff
path: root/libavcodec/flac.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2008-05-02 21:35:32 +0000
committerJustin Ruggles <justin.ruggles@gmail.com>2008-05-02 21:35:32 +0000
commit512b37bb284fc97e68680781c4b1423ec6234d0a (patch)
treea83b9215b59e4ae3353cff651777cb57662b004c /libavcodec/flac.c
parent9482171bbd18fec6953e03e20681b08759a9f854 (diff)
downloadffmpeg-512b37bb284fc97e68680781c4b1423ec6234d0a.tar.gz
move call to init_get_bits inside conditional
Originally committed as revision 13037 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/flac.c')
-rw-r--r--libavcodec/flac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/flac.c b/libavcodec/flac.c
index c370b55992..d2cc3831f1 100644
--- a/libavcodec/flac.c
+++ b/libavcodec/flac.c
@@ -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);
}
}