Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
libvpx
Commits
139577f9
Commit
139577f9
authored
Jul 12, 2011
by
Yunqing Wang
Browse files
Fix unnecessary casting of B_PREDICTION_MODE (issue 349)
Minor fix. Change-Id: Iaf93f6e47e882a33c479e57c7a0d0bf321e291c0
parent
587ca06d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
vp8/decoder/decodemv.c
vp8/decoder/decodemv.c
+3
-3
No files found.
vp8/decoder/decodemv.c
View file @
139577f9
...
...
@@ -180,11 +180,11 @@ static MB_PREDICTION_MODE read_mv_ref(vp8_reader *bc, const vp8_prob *p)
return
(
MB_PREDICTION_MODE
)
i
;
}
static
M
B_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
);
return
(
M
B_PREDICTION_MODE
)
i
;
return
(
B_PREDICTION_MODE
)
i
;
}
#ifdef VPX_MODE_COUNT
...
...
@@ -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
);
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
:
read_mv
(
bc
,
&
blockmv
.
as_mv
,
(
const
MV_CONTEXT
*
)
mvc
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment