diff options
author | John Koleszar <jkoleszar@google.com> | 2013-02-08 19:46:36 -0800 |
---|---|---|
committer | John Koleszar <jkoleszar@google.com> | 2013-02-08 20:23:35 -0800 |
commit | 7ca517f75592eaddbe008117790d834cdbed9199 (patch) | |
tree | 4ab6dca01b0fc478c806017cdaeb55b6cdebebc6 /vp9/decoder | |
parent | dc836109e4b8013ee28f4f36b4a48fd18ca209e4 (diff) | |
download | libvpx-7ca517f75592eaddbe008117790d834cdbed9199.tar libvpx-7ca517f75592eaddbe008117790d834cdbed9199.tar.gz libvpx-7ca517f75592eaddbe008117790d834cdbed9199.tar.bz2 libvpx-7ca517f75592eaddbe008117790d834cdbed9199.zip |
Replace as_mv struct with array
Replace as_mv.{first, second} with a two element array, so that they
can easily be processed with an index variable.
Change-Id: I1e429155544d2a94a5b72a5b467c53d8b8728190
Diffstat (limited to 'vp9/decoder')
-rw-r--r-- | vp9/decoder/vp9_decodemv.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vp9/decoder/vp9_decodemv.c b/vp9/decoder/vp9_decodemv.c index e526262bb..bb14363ce 100644 --- a/vp9/decoder/vp9_decodemv.c +++ b/vp9/decoder/vp9_decodemv.c @@ -1041,9 +1041,9 @@ static void read_mb_modes_mv(VP9D_COMP *pbi, MODE_INFO *mi, MB_MODE_INFO *mbmi, fill_offset = &mbsplit_fill_offset[s][(unsigned char)j * mbsplit_fill_count[s]]; do { - mi->bmi[ *fill_offset].as_mv.first.as_int = blockmv.as_int; + mi->bmi[ *fill_offset].as_mv[0].as_int = blockmv.as_int; if (mbmi->second_ref_frame > 0) - mi->bmi[ *fill_offset].as_mv.second.as_int = secondmv.as_int; + mi->bmi[ *fill_offset].as_mv[1].as_int = secondmv.as_int; fill_offset++; } while (--fill_count); } @@ -1051,8 +1051,8 @@ static void read_mb_modes_mv(VP9D_COMP *pbi, MODE_INFO *mi, MB_MODE_INFO *mbmi, } while (++j < num_p); } - mv->as_int = mi->bmi[15].as_mv.first.as_int; - mbmi->mv[1].as_int = mi->bmi[15].as_mv.second.as_int; + mv->as_int = mi->bmi[15].as_mv[0].as_int; + mbmi->mv[1].as_int = mi->bmi[15].as_mv[1].as_int; break; /* done with SPLITMV */ |