summaryrefslogtreecommitdiffstats
path: root/libavcodec/lagarith.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-01-06 14:57:41 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-01-06 15:07:35 +0100
commitb7697d29ed772dd94cb23400154d3e47e326d151 (patch)
treef725d8cec30ad890e1b7bbee15b8d27aff365c4e /libavcodec/lagarith.c
parente86cd37a7026d277e81413cbdde06556742791bb (diff)
parent2f97094608cfd2665660f7a26a3291559b186752 (diff)
downloadffmpeg-streaming-b7697d29ed772dd94cb23400154d3e47e326d151.zip
ffmpeg-streaming-b7697d29ed772dd94cb23400154d3e47e326d151.tar.gz
Merge commit '2f97094608cfd2665660f7a26a3291559b186752'
* commit '2f97094608cfd2665660f7a26a3291559b186752': lagarith: do not call simd functions on unaligned lines Conflicts: libavcodec/lagarith.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/lagarith.c')
-rw-r--r--libavcodec/lagarith.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libavcodec/lagarith.c b/libavcodec/lagarith.c
index 11d7791..8385b70 100644
--- a/libavcodec/lagarith.c
+++ b/libavcodec/lagarith.c
@@ -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);
}
}
OpenPOWER on IntegriCloud