[FFmpeg-cvslog] r9744 - trunk/libavcodec/alac.c
vitor
subversion
Wed Jul 18 22:23:43 CEST 2007
Author: vitor
Date: Wed Jul 18 22:23:43 2007
New Revision: 9744
Log:
Another minor simplification
Modified:
trunk/libavcodec/alac.c
Modified: trunk/libavcodec/alac.c
==============================================================================
--- trunk/libavcodec/alac.c (original)
+++ trunk/libavcodec/alac.c Wed Jul 18 22:23:43 2007
@@ -412,19 +412,16 @@ static void deinterlace_16(int32_t *buff
/* weighted interlacing */
if (interlacing_leftweight) {
for (i = 0; i < numsamples; i++) {
- int32_t difference, midright;
- int16_t left;
- int16_t right;
-
- midright = buffer[0][i];
- difference = buffer[1][i];
+ int32_t a, b;
+ a = buffer[0][i];
+ b = buffer[1][i];
- right = midright - ((difference * interlacing_leftweight) >> interlacing_shift);
- left = right + difference;
+ a -= (b * interlacing_leftweight) >> interlacing_shift;
+ b += a;
- buffer_out[i*numchannels] = left;
- buffer_out[i*numchannels + 1] = right;
+ buffer_out[i*numchannels] = b;
+ buffer_out[i*numchannels + 1] = a;
}
return;
More information about the ffmpeg-cvslog
mailing list