git.videolan.org
/
ffmpeg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix start_frame(), which was issuing chroma artifacts with planar
[ffmpeg.git]
/
libavfilter
/
vf_crop.c
diff --git
a/libavfilter/vf_crop.c
b/libavfilter/vf_crop.c
index
45415e1
..
0ff5f76
100644
(file)
--- a/
libavfilter/vf_crop.c
+++ b/
libavfilter/vf_crop.c
@@
-180,7
+180,7
@@
static void start_frame(AVFilterLink *link, AVFilterPicRef *picref)
for (i = 1; i < 3; i ++) {
if (ref2->data[i]) {
ref2->data[i] += (crop->y >> crop->vsub) * ref2->linesize[i];
- ref2->data[i] +=
crop->x
>> crop->hsub;
+ ref2->data[i] +=
((crop->x * crop->bpp) >> 3)
>> crop->hsub;
}
}
}