git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4216968
)
avfilter/palettegen: consistently use the same frame for dimensions
author
Clément Bœsch
<clement@stupeflix.com>
Thu, 26 Feb 2015 09:25:53 +0000
(10:25 +0100)
committer
Clément Bœsch
<clement@stupeflix.com>
Thu, 26 Feb 2015 13:20:02 +0000
(14:20 +0100)
libavfilter/vf_palettegen.c
patch
|
blob
|
history
diff --git
a/libavfilter/vf_palettegen.c
b/libavfilter/vf_palettegen.c
index
878b2f7
..
f1f4722
100644
(file)
--- 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 < f
2
->width; x++) {
+ for (x = 0; x < f
1
->width; x++) {
if (p[x] == q[x])
continue;
ret = color_inc(hist, p[x]);