Browse Source

vp9: clamp segmented lflvl before applying ref/mode deltas.

tags/n2.7
Ronald S. Bultje 10 years ago
parent
commit
5de142d316
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavcodec/vp9.c

+ 2
- 2
libavcodec/vp9.c View File

@@ -800,9 +800,9 @@ static int decode_frame_header(AVCodecContext *ctx,
sh = s->filter.level >= 32;
if (s->segmentation.feat[i].lf_enabled) {
if (s->segmentation.absolute_vals)
lflvl = s->segmentation.feat[i].lf_val;
lflvl = av_clip_uintp2(s->segmentation.feat[i].lf_val, 6);
else
lflvl = s->filter.level + s->segmentation.feat[i].lf_val;
lflvl = av_clip_uintp2(s->filter.level + s->segmentation.feat[i].lf_val, 6);
} else {
lflvl = s->filter.level;
}


Loading…
Cancel
Save