summaryrefslogtreecommitdiff
path: root/libavcodec/h263.c
diff options
context:
space:
mode:
authorGwenole Beauchesne <gbeauchesne@splitted-desktop.com>2009-03-30 20:39:08 +0000
committerGwenole Beauchesne <gbeauchesne@splitted-desktop.com>2009-03-30 20:39:08 +0000
commit11b93979415eb6a4d69c8d3c31e2a32edcd24871 (patch)
treebfe55a1298280101a4b3bc61301c13bf2dc98e6f /libavcodec/h263.c
parent7f7b04af38cdc064dfdd2670c5d83865dfecceea (diff)
downloadffmpeg-11b93979415eb6a4d69c8d3c31e2a32edcd24871.tar.gz
Record MPEG-4 sprite trajectory points [up to num_sprite_warping_points][isY].
Originally committed as revision 18250 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h263.c')
-rw-r--r--libavcodec/h263.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libavcodec/h263.c b/libavcodec/h263.c
index 170513dc27..2a945c6eda 100644
--- a/libavcodec/h263.c
+++ b/libavcodec/h263.c
@@ -5339,9 +5339,11 @@ static void mpeg4_decode_sprite_trajectory(MpegEncContext * s, GetBitContext *gb
}
skip_bits1(gb); /* marker bit */
//printf("%d %d %d %d\n", x, y, i, s->sprite_warping_accuracy);
- d[i][0]= x;
- d[i][1]= y;
+ s->sprite_traj[i][0]= d[i][0]= x;
+ s->sprite_traj[i][1]= d[i][1]= y;
}
+ for(; i<4; i++)
+ s->sprite_traj[i][0]= s->sprite_traj[i][1]= 0;
while((1<<alpha)<w) alpha++;
while((1<<beta )<h) beta++; // there seems to be a typo in the mpeg4 std for the definition of w' and h'