mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-24 17:12:34 +02:00
avfilter/vf_normalize: fix regression with white/black point calculation
This commit is contained in:
parent
8b1bb4f38e
commit
c7ece8e26f
@ -448,8 +448,8 @@ static int config_input(AVFilterLink *inlink)
|
|||||||
for (c = 0; c < 3; c++) {
|
for (c = 0; c < 3; c++) {
|
||||||
s->min[c].history = s->history_mem + (c*2) * s->history_len;
|
s->min[c].history = s->history_mem + (c*2) * s->history_len;
|
||||||
s->max[c].history = s->history_mem + (c*2+1) * s->history_len;
|
s->max[c].history = s->history_mem + (c*2+1) * s->history_len;
|
||||||
s->sblackpt[c] = scale * s->blackpt[c] + (s->blackpt[c] >> (s->depth - 8));
|
s->sblackpt[c] = scale * s->blackpt[c] + (s->blackpt[c] & (1 << (s->depth - 8)));
|
||||||
s->swhitept[c] = scale * s->whitept[c] + (s->whitept[c] >> (s->depth - 8));
|
s->swhitept[c] = scale * s->whitept[c] + (s->whitept[c] & (1 << (s->depth - 8)));
|
||||||
}
|
}
|
||||||
|
|
||||||
planar = desc->flags & AV_PIX_FMT_FLAG_PLANAR;
|
planar = desc->flags & AV_PIX_FMT_FLAG_PLANAR;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user