summaryrefslogtreecommitdiff
path: root/src/libffmpeg/libavcodec/h263.c
diff options
context:
space:
mode:
authorRobin KAY <komadori@users.sourceforge.net>2002-12-22 00:35:04 +0000
committerRobin KAY <komadori@users.sourceforge.net>2002-12-22 00:35:04 +0000
commit614e17928e8f7b1bdc632fd934499cbfea165d8a (patch)
tree26887fbf9f785a69ec603c703ecda4650bbec829 /src/libffmpeg/libavcodec/h263.c
parent1b71075127f7fdfad0c16cc8535cd2c2b4e01c3b (diff)
downloadxine-lib-614e17928e8f7b1bdc632fd934499cbfea165d8a.tar.gz
xine-lib-614e17928e8f7b1bdc632fd934499cbfea165d8a.tar.bz2
Make xine-lib compile with the SunPro compiler
CVS patchset: 3623 CVS date: 2002/12/22 00:35:04
Diffstat (limited to 'src/libffmpeg/libavcodec/h263.c')
-rw-r--r--src/libffmpeg/libavcodec/h263.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/libffmpeg/libavcodec/h263.c b/src/libffmpeg/libavcodec/h263.c
index 98b29ad0b..0d0799bb5 100644
--- a/src/libffmpeg/libavcodec/h263.c
+++ b/src/libffmpeg/libavcodec/h263.c
@@ -3887,7 +3887,7 @@ static void mpeg4_decode_sprite_trajectory(MpegEncContext * s)
int a= 2<<s->sprite_warping_accuracy;
int rho= 3-s->sprite_warping_accuracy;
int r=16/a;
- const int vop_ref[4][2]= {{0,0}, {s->width,0}, {0, s->height}, {s->width, s->height}}; // only true for rectangle shapes
+ int vop_ref[4][2];
int d[4][2]={{0,0}, {0,0}, {0,0}, {0,0}};
int sprite_ref[4][2];
int virtual_ref[2][2];
@@ -3897,6 +3897,15 @@ static void mpeg4_decode_sprite_trajectory(MpegEncContext * s)
int h= s->height;
int min_ab;
+ vop_ref[0][0] = 0;
+ vop_ref[0][1] = 0;
+ vop_ref[1][0] = s->width;
+ vop_ref[1][1] = 0;
+ vop_ref[2][0] = 0;
+ vop_ref[2][1] = s->height;
+ vop_ref[3][0] = s->width;
+ vop_ref[3][1] = s->height;
+
for(i=0; i<s->num_sprite_warping_points; i++){
int length;
int x=0, y=0;