Skip to content

Commit

Permalink
Merge commit '2f97094608cfd2665660f7a26a3291559b186752'
Browse files Browse the repository at this point in the history
* commit '2f97094608cfd2665660f7a26a3291559b186752':
  lagarith: do not call simd functions on unaligned lines

Conflicts:
	libavcodec/lagarith.c

Merged-by: Michael Niedermayer <[email protected]>
  • Loading branch information
michaelni committed Jan 6, 2014
2 parents e86cd37 + 2f97094 commit b7697d2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions libavcodec/lagarith.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit b7697d2

Please sign in to comment.