aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vp56.c
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2006-09-09 22:53:44 +0000
committerAurelien Jacobs <aurel@gnuage.org>2006-09-09 22:53:44 +0000
commitd120e4026d685fd770ac211191d72757b112a556 (patch)
tree40c474dc134dd8ba13d1674a5bec8a2d7b78c02d /libavcodec/vp56.c
parent9a8e6f87080bba32a8801ff7b690d8032df75004 (diff)
downloadffmpeg-d120e4026d685fd770ac211191d72757b112a556.tar.gz
rename vector to vect to avoid clash with Apple gcc
Originally committed as revision 6217 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vp56.c')
-rw-r--r--libavcodec/vp56.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/libavcodec/vp56.c b/libavcodec/vp56.c
index 4a13adadaf..9acd7e7e2c 100644
--- a/libavcodec/vp56.c
+++ b/libavcodec/vp56.c
@@ -36,7 +36,7 @@ static int vp56_get_vectors_predictors(vp56_context_t *s, int row, int col,
vp56_frame_t ref_frame)
{
int nb_pred = 0;
- vp56_mv_t vector[2] = {{0,0}, {0,0}};
+ vp56_mv_t vect[2] = {{0,0}, {0,0}};
int pos, offset;
vp56_mv_t mvp;
@@ -50,13 +50,13 @@ static int vp56_get_vectors_predictors(vp56_context_t *s, int row, int col,
if (vp56_reference_frame[s->macroblocks[offset].type] != ref_frame)
continue;
- if ((s->macroblocks[offset].mv.x == vector[0].x &&
- s->macroblocks[offset].mv.y == vector[0].y) ||
+ if ((s->macroblocks[offset].mv.x == vect[0].x &&
+ s->macroblocks[offset].mv.y == vect[0].y) ||
(s->macroblocks[offset].mv.x == 0 &&
s->macroblocks[offset].mv.y == 0))
continue;
- vector[nb_pred++] = s->macroblocks[offset].mv;
+ vect[nb_pred++] = s->macroblocks[offset].mv;
if (nb_pred > 1) {
nb_pred = -1;
break;
@@ -64,8 +64,8 @@ static int vp56_get_vectors_predictors(vp56_context_t *s, int row, int col,
s->vector_candidate_pos = pos;
}
- s->vector_candidate[0] = vector[0];
- s->vector_candidate[1] = vector[1];
+ s->vector_candidate[0] = vect[0];
+ s->vector_candidate[1] = vect[1];
return nb_pred+1;
}
@@ -198,7 +198,7 @@ static void vp56_decode_4mv(vp56_context_t *s, int row, int col)
static vp56_mb_t vp56_decode_mv(vp56_context_t *s, int row, int col)
{
- vp56_mv_t *mv, vector = {0,0};
+ vp56_mv_t *mv, vect = {0,0};
int ctx, b;
ctx = vp56_get_vectors_predictors(s, row, col, VP56_FRAME_PREVIOUS);
@@ -225,14 +225,14 @@ static vp56_mb_t vp56_decode_mv(vp56_context_t *s, int row, int col)
break;
case VP56_MB_INTER_DELTA_PF:
- s->parse_vector_adjustment(s, &vector);
- mv = &vector;
+ s->parse_vector_adjustment(s, &vect);
+ mv = &vect;
break;
case VP56_MB_INTER_DELTA_GF:
vp56_get_vectors_predictors(s, row, col, VP56_FRAME_GOLDEN);
- s->parse_vector_adjustment(s, &vector);
- mv = &vector;
+ s->parse_vector_adjustment(s, &vect);
+ mv = &vect;
break;
case VP56_MB_INTER_4V:
@@ -240,7 +240,7 @@ static vp56_mb_t vp56_decode_mv(vp56_context_t *s, int row, int col)
return s->mb_type;
default:
- mv = &vector;
+ mv = &vect;
break;
}