[FFmpeg-soc] [soc]: r3871 - dirac/libavcodec/diracdec.c
conrad
subversion at mplayerhq.hu
Sat Dec 6 03:01:00 CET 2008
Author: conrad
Date: Sat Dec 6 03:00:59 2008
New Revision: 3871
Log:
Small optimization
Modified:
dirac/libavcodec/diracdec.c
Modified: dirac/libavcodec/diracdec.c
==============================================================================
--- dirac/libavcodec/diracdec.c (original)
+++ dirac/libavcodec/diracdec.c Sat Dec 6 03:00:59 2008
@@ -664,9 +664,9 @@ static int dirac_decode_frame_internal(D
mcline = s->mcpic;
for (y = 0; y < height; y++) {
for (x = 0; x < width; x++) {
- int16_t coeff = mcline[x] + (1 << (s->total_wt_bits - 1));
- line[x] += coeff >> s->total_wt_bits;
- frame[x]= av_clip_uint8(line[x] + 128);
+ int coeff = mcline[x] + (1 << (s->total_wt_bits - 1));
+ coeff = line[x] + (coeff >> s->total_wt_bits);
+ frame[x]= av_clip_uint8(coeff + 128);
}
line += s->padded_width;
More information about the FFmpeg-soc
mailing list