[FFmpeg-cvslog] r17819 - trunk/libavcodec/flacdec.c
jbr
subversion
Thu Mar 5 02:23:54 CET 2009
Author: jbr
Date: Thu Mar 5 02:23:53 2009
New Revision: 17819
Log:
flacdec: cosmetics: move 2 statements to immediately after frame
decoding.
Modified:
trunk/libavcodec/flacdec.c
Modified: trunk/libavcodec/flacdec.c
==============================================================================
--- trunk/libavcodec/flacdec.c Thu Mar 5 02:15:38 2009 (r17818)
+++ trunk/libavcodec/flacdec.c Thu Mar 5 02:23:53 2009 (r17819)
@@ -683,6 +683,8 @@ static int flac_decode_frame(AVCodecCont
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 @@ static int flac_decode_frame(AVCodecCont
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);
More information about the ffmpeg-cvslog
mailing list