diff options
author | Clément Bœsch <clement@stupeflix.com> | 2015-02-26 12:25:53 +0300 |
---|---|---|
committer | Clément Bœsch <clement@stupeflix.com> | 2015-02-26 16:20:02 +0300 |
commit | 30f4e9d3d90b66aab06cb0559b7aca5fa290d684 (patch) | |
tree | 0aaa081465c51294ce32f5c2e349b7af6a8066d9 /libavfilter/vf_palettegen.c | |
parent | 4216968f854bc8cec0d9b95943186d2e5c74a7f2 (diff) |
avfilter/palettegen: consistently use the same frame for dimensions
Diffstat (limited to 'libavfilter/vf_palettegen.c')
-rw-r--r-- | libavfilter/vf_palettegen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_palettegen.c b/libavfilter/vf_palettegen.c index 878b2f7924..f1f472225b 100644 --- a/libavfilter/vf_palettegen.c +++ b/libavfilter/vf_palettegen.c @@ -436,7 +436,7 @@ static int update_histogram_diff(struct hist_node *hist, const uint32_t *p = (const uint32_t *)(f1->data[0] + y*f1->linesize[0]); const uint32_t *q = (const uint32_t *)(f2->data[0] + y*f2->linesize[0]); - for (x = 0; x < f2->width; x++) { + for (x = 0; x < f1->width; x++) { if (p[x] == q[x]) continue; ret = color_inc(hist, p[x]); |