avfilter/vf_deblock: fix >8 depth format case check

This commit is contained in:
Paul B Mahol 2021-01-21 12:55:16 +01:00
parent 27f1ee7f53
commit 4225819c70
1 changed files with 2 additions and 2 deletions

View File

@ -285,14 +285,14 @@ static int config_output(AVFilterLink *outlink)
if (s->depth <= 8 && s->filter == WEAK) {
s->deblockh = deblockh8_weak;
s->deblockv = deblockv8_weak;
} else if (s->depth >= 8 && s->filter == WEAK) {
} else if (s->depth > 8 && s->filter == WEAK) {
s->deblockh = deblockh16_weak;
s->deblockv = deblockv16_weak;
}
if (s->depth <= 8 && s->filter == STRONG) {
s->deblockh = deblockh8_strong;
s->deblockv = deblockv8_strong;
} else if (s->depth >= 8 && s->filter == STRONG) {
} else if (s->depth > 8 && s->filter == STRONG) {
s->deblockh = deblockh16_strong;
s->deblockv = deblockv16_strong;
}