diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-01-06 14:57:41 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-01-06 15:07:35 +0100 |
commit | b7697d29ed772dd94cb23400154d3e47e326d151 (patch) | |
tree | f725d8cec30ad890e1b7bbee15b8d27aff365c4e | |
parent | e86cd37a7026d277e81413cbdde06556742791bb (diff) | |
parent | 2f97094608cfd2665660f7a26a3291559b186752 (diff) | |
download | ffmpeg-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>
-rw-r--r-- | libavcodec/lagarith.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libavcodec/lagarith.c b/libavcodec/lagarith.c index 11d7791bfa..8385b7095b 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); } } |