Commit b7697d29 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '2f970946'

* commit '2f970946':
  lagarith: do not call simd functions on unaligned lines

Conflicts:
	libavcodec/lagarith.c
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents e86cd37a 2f970946
......@@ -302,16 +302,16 @@ static void lag_pred_line_yuy2(LagarithContext *l, uint8_t *buf,
L += buf[i];
buf[i] = L;
}
for (; i<width; i++) {
L = mid_pred(L&0xFF, buf[i-stride], (L + buf[i-stride] - TL)&0xFF) + buf[i];
TL = buf[i-stride];
buf[i]= L;
for (; i < width; i++) {
L = mid_pred(L & 0xFF, buf[i - stride], (L + buf[i - stride] - TL) & 0xFF) + buf[i];
TL = buf[i - stride];
buf[i] = L;
}
} else {
TL = buf[width - (2 * stride) - 1];
L = buf[width - stride - 1];
l->dsp.add_hfyu_median_prediction(buf, buf - stride, buf, width,
&L, &TL);
&L, &TL);
}
}
......
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