[FFmpeg-cvslog] r13037 - trunk/libavcodec/flac.c

jbr subversion
Fri May 2 23:35:33 CEST 2008


Author: jbr
Date: Fri May  2 23:35:32 2008
New Revision: 13037

Log:
move call to init_get_bits inside conditional

Modified:
   trunk/libavcodec/flac.c

Modified: trunk/libavcodec/flac.c
==============================================================================
--- trunk/libavcodec/flac.c	(original)
+++ trunk/libavcodec/flac.c	Fri May  2 23:35:32 2008
@@ -104,11 +104,11 @@ static av_cold int flac_decode_init(AVCo
 
     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);
         }
     }




More information about the ffmpeg-cvslog mailing list