mirror of https://git.ffmpeg.org/ffmpeg.git
avfilter/palettegen: consistently use the same frame for dimensions
This commit is contained in:
parent
4216968f85
commit
30f4e9d3d9
|
@ -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 *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]);
|
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])
|
if (p[x] == q[x])
|
||||||
continue;
|
continue;
|
||||||
ret = color_inc(hist, p[x]);
|
ret = color_inc(hist, p[x]);
|
||||||
|
|
Loading…
Reference in New Issue