mirror of
https://github.com/mpv-player/mpv
synced 2025-01-11 17:39:38 +00:00
vf_ass: use correct height when copying image
The target image can be larger than the image size the video filter was configured for. Based on mplayer-svn commit 34973.
This commit is contained in:
parent
f0965d8356
commit
14b545eb2a
@ -290,7 +290,7 @@ static void copy_to_image(struct vf_instance *vf)
|
||||
unsigned char *dst = vf->dmpi->planes[pl];
|
||||
unsigned char *src = vf->priv->planes[pl];
|
||||
unsigned char *src_next = vf->priv->planes[pl] + src_stride;
|
||||
for (i = 0; i < vf->dmpi->chroma_height; ++i) {
|
||||
for (i = 0; i < vf->priv->outh / 2; ++i) {
|
||||
for (j = vf->priv->line_limits[i].start; j < vf->priv->line_limits[i].end; j++) {
|
||||
unsigned val = 0;
|
||||
val += src[j << 1];
|
||||
|
Loading…
Reference in New Issue
Block a user