Revision f66e4f5f libavcodec/svq3.c
libavcodec/svq3.c | ||
---|---|---|
285 | 285 |
emu = 1; |
286 | 286 |
} |
287 | 287 |
|
288 |
mx = clip (mx, -16, (s->h_edge_pos - width + 15)); |
|
289 |
my = clip (my, -16, (s->v_edge_pos - height + 15)); |
|
288 |
mx = av_clip (mx, -16, (s->h_edge_pos - width + 15));
|
|
289 |
my = av_clip (my, -16, (s->v_edge_pos - height + 15));
|
|
290 | 290 |
} |
291 | 291 |
|
292 | 292 |
/* form component predictions */ |
... | ... | |
361 | 361 |
} |
362 | 362 |
|
363 | 363 |
/* clip motion vector prediction to frame border */ |
364 |
mx = clip (mx, extra_width - 6*x, h_edge_pos - 6*x); |
|
365 |
my = clip (my, extra_width - 6*y, v_edge_pos - 6*y); |
|
364 |
mx = av_clip (mx, extra_width - 6*x, h_edge_pos - 6*x);
|
|
365 |
my = av_clip (my, extra_width - 6*y, v_edge_pos - 6*y);
|
|
366 | 366 |
|
367 | 367 |
/* get (optional) motion vector differential */ |
368 | 368 |
if (mode == PREDICT_MODE) { |
Also available in: Unified diff