diff options
author | Clément Bœsch <u@pkh.me> | 2015-11-12 15:03:07 +0100 |
---|---|---|
committer | Clément Bœsch <clement@stupeflix.com> | 2015-11-23 10:55:15 +0100 |
commit | 56bdf61baa04c4fd8d165f34499115ce0aa97c43 (patch) | |
tree | 9a973b765cba9ca2de8ff68c07805d32a2bdc319 /libavcodec/snowdec.c | |
parent | c7b933885343739e5fc37286d6d2c0736c1ffeb4 (diff) | |
download | ffmpeg-56bdf61baa04c4fd8d165f34499115ce0aa97c43.tar.gz |
avutil/motion_vector: export subpel motion information
FATE test changes because of the switch from shift to division.
Diffstat (limited to 'libavcodec/snowdec.c')
-rw-r--r-- | libavcodec/snowdec.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libavcodec/snowdec.c b/libavcodec/snowdec.c index 1b288dd813..042aecbbeb 100644 --- a/libavcodec/snowdec.c +++ b/libavcodec/snowdec.c @@ -104,8 +104,11 @@ static av_always_inline void predict_slice_buffered(SnowContext *s, slice_buffer avmv->h = block_h; avmv->dst_x = block_w*mb_x - block_w/2; avmv->dst_y = block_h*mb_y - block_h/2; - avmv->src_x = avmv->dst_x + (bn->mx * s->mv_scale)/8; - avmv->src_y = avmv->dst_y + (bn->my * s->mv_scale)/8; + avmv->motion_scale = 8; + avmv->motion_x = bn->mx * s->mv_scale; + avmv->motion_y = bn->my * s->mv_scale; + avmv->src_x = avmv->dst_x + avmv->motion_x / 8; + avmv->src_y = avmv->dst_y + avmv->motion_y / 8; avmv->source= -1 - bn->ref; avmv->flags = 0; } |