Commit 139577f9 authored by Yunqing Wang's avatar Yunqing Wang
Browse files

Fix unnecessary casting of B_PREDICTION_MODE (issue 349)

Minor fix.

Change-Id: Iaf93f6e47e882a33c479e57c7a0d0bf321e291c0
parent 587ca06d
...@@ -180,11 +180,11 @@ static MB_PREDICTION_MODE read_mv_ref(vp8_reader *bc, const vp8_prob *p) ...@@ -180,11 +180,11 @@ static MB_PREDICTION_MODE read_mv_ref(vp8_reader *bc, const vp8_prob *p)
return (MB_PREDICTION_MODE)i; return (MB_PREDICTION_MODE)i;
} }
static MB_PREDICTION_MODE sub_mv_ref(vp8_reader *bc, const vp8_prob *p) static B_PREDICTION_MODE sub_mv_ref(vp8_reader *bc, const vp8_prob *p)
{ {
const int i = vp8_treed_read(bc, vp8_sub_mv_ref_tree, p); const int i = vp8_treed_read(bc, vp8_sub_mv_ref_tree, p);
return (MB_PREDICTION_MODE)i; return (B_PREDICTION_MODE)i;
} }
#ifdef VPX_MODE_COUNT #ifdef VPX_MODE_COUNT
...@@ -334,7 +334,7 @@ static void read_mb_modes_mv(VP8D_COMP *pbi, MODE_INFO *mi, MB_MODE_INFO *mbmi, ...@@ -334,7 +334,7 @@ static void read_mb_modes_mv(VP8D_COMP *pbi, MODE_INFO *mi, MB_MODE_INFO *mbmi,
abovemv.as_int = above_block_mv(mi, k, mis); abovemv.as_int = above_block_mv(mi, k, mis);
mv_contz = vp8_mv_cont(&leftmv, &abovemv); mv_contz = vp8_mv_cont(&leftmv, &abovemv);
switch ((B_PREDICTION_MODE) sub_mv_ref(bc, vp8_sub_mv_ref_prob2 [mv_contz])) /*pc->fc.sub_mv_ref_prob))*/ switch (sub_mv_ref(bc, vp8_sub_mv_ref_prob2 [mv_contz])) /*pc->fc.sub_mv_ref_prob))*/
{ {
case NEW4X4: case NEW4X4:
read_mv(bc, &blockmv.as_mv, (const MV_CONTEXT *) mvc); read_mv(bc, &blockmv.as_mv, (const MV_CONTEXT *) mvc);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment