Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
aom-rav1e
Commits
fd96aec9
Commit
fd96aec9
authored
Aug 17, 2016
by
Alex Converse
Browse files
Don't send segment probability updates when the map isn't updated.
BUG=webm:1275 Change-Id: I7d4bbaaf2f2146b023e1902fbc535a70e490cf2d
parent
0996fc6b
Changes
2
Hide whitespace changes
Inline
Side-by-side
vp10/decoder/decodeframe.c
View file @
fd96aec9
...
...
@@ -3462,7 +3462,7 @@ static int read_compressed_header(VP10Decoder *pbi, const uint8_t *data,
for
(
k
=
0
;
k
<
SKIP_CONTEXTS
;
++
k
)
vp10_diff_update_prob
(
&
r
,
&
fc
->
skip_probs
[
k
]);
if
(
cm
->
seg
.
enabled
)
{
if
(
cm
->
seg
.
enabled
&&
cm
->
seg
.
update_map
)
{
if
(
cm
->
seg
.
temporal_update
)
{
for
(
k
=
0
;
k
<
PREDICTION_PROBS
;
k
++
)
vp10_diff_update_prob
(
&
r
,
&
cm
->
fc
->
seg
.
pred_probs
[
k
]);
...
...
vp10/encoder/bitstream.c
View file @
fd96aec9
...
...
@@ -2543,9 +2543,9 @@ static void encode_segmentation(VP10_COMMON *cm, MACROBLOCKD *xd,
static
void
update_seg_probs
(
VP10_COMP
*
cpi
,
vp10_writer
*
w
)
{
VP10_COMMON
*
cm
=
&
cpi
->
common
;
if
(
!
c
pi
->
common
.
seg
.
enabled
)
return
;
if
(
!
c
m
->
seg
.
enabled
||
!
cm
->
seg
.
update_map
)
return
;
if
(
c
pi
->
common
.
seg
.
temporal_update
)
{
if
(
c
m
->
seg
.
temporal_update
)
{
int
i
;
for
(
i
=
0
;
i
<
PREDICTION_PROBS
;
i
++
)
...
...
Write
Preview
Supports
Markdown
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