changeset 9136:ebad2cb9e015 libavcodec

flacdec: cosmetics: move 2 statements to immediately after frame decoding.
author jbr
date Thu, 05 Mar 2009 01:23:53 +0000
parents 05c6e8598143
children f32faa6e149b
files flacdec.c
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/flacdec.c	Thu Mar 05 01:15:38 2009 +0000
+++ b/flacdec.c	Thu Mar 05 01:23:53 2009 +0000
@@ -683,6 +683,8 @@
         s->bitstream_index=0;
         return -1;
     }
+    *data_size = s->blocksize * s->channels * (s->is32 ? 4 : 2);
+    bytes_read = (get_bits_count(&s->gb)+7)/8;
 
 #define DECORRELATE(left, right)\
             assert(s->channels == 2);\
@@ -718,9 +720,6 @@
         DECORRELATE( (a-=b>>1) + b, a)
     }
 
-    *data_size = s->blocksize * s->channels * (s->is32 ? 4 : 2);
-
-    bytes_read = (get_bits_count(&s->gb)+7)/8;
 end:
     if (bytes_read > buf_size) {
         av_log(s->avctx, AV_LOG_ERROR, "overread: %d\n", bytes_read - buf_size);