Commit caf6512a authored by Ronald S. Bultje's avatar Ronald S. Bultje

vp9: deal with the case where update_map=0 but we're key/intraonly.

parent 339550e7
......@@ -1479,7 +1479,8 @@ static void decode_mode(AVCodecContext *ctx)
if (!s->segmentation.enabled) {
b->seg_id = 0;
} else if (s->keyframe || s->intraonly) {
b->seg_id = vp8_rac_get_tree(&s->c, vp9_segmentation_tree, s->prob.seg);
b->seg_id = !s->segmentation.update_map ? 0 :
vp8_rac_get_tree(&s->c, vp9_segmentation_tree, s->prob.seg);
} else if (!s->segmentation.update_map ||
(s->segmentation.temporal &&
vp56_rac_get_prob_branchy(&s->c,
......
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