Commit 5b9b41c7 authored by vitor's avatar vitor

Another minor simplification

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@9744 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 84dfa8a1
...@@ -412,19 +412,16 @@ static void deinterlace_16(int32_t *buffer[MAX_CHANNELS], ...@@ -412,19 +412,16 @@ static void deinterlace_16(int32_t *buffer[MAX_CHANNELS],
/* weighted interlacing */ /* weighted interlacing */
if (interlacing_leftweight) { if (interlacing_leftweight) {
for (i = 0; i < numsamples; i++) { for (i = 0; i < numsamples; i++) {
int32_t difference, midright; int32_t a, b;
int16_t left;
int16_t right;
midright = buffer[0][i]; a = buffer[0][i];
difference = buffer[1][i]; b = buffer[1][i];
a -= (b * interlacing_leftweight) >> interlacing_shift;
b += a;
right = midright - ((difference * interlacing_leftweight) >> interlacing_shift); buffer_out[i*numchannels] = b;
left = right + difference; buffer_out[i*numchannels + 1] = a;
buffer_out[i*numchannels] = left;
buffer_out[i*numchannels + 1] = right;
} }
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment