From 14b545eb2a8650dbffebd0194bdb4d53e530d14e Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 3 Aug 2012 03:32:45 +0200 Subject: 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. --- libmpcodecs/vf_ass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmpcodecs/vf_ass.c b/libmpcodecs/vf_ass.c index 0eabc50bb3..f7e3e62ec0 100644 --- a/libmpcodecs/vf_ass.c +++ b/libmpcodecs/vf_ass.c @@ -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]; -- cgit v1.2.3