Mercurial > mplayer.hg
changeset 34885:e8af23854aa1
Use correct variable for height.
Fixes possible assert failures if direct rendering was
used and height was padded caused by a too small dirty_rows
array.
author | reimar |
---|---|
date | Tue, 29 May 2012 18:32:35 +0000 |
parents | 57bb464310a7 |
children | 73842c97cac0 |
files | libmpcodecs/vf_ass.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/vf_ass.c Sun May 27 18:12:42 2012 +0000 +++ b/libmpcodecs/vf_ass.c Tue May 29 18:32:35 2012 +0000 @@ -280,7 +280,7 @@ 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) { if ((vf->priv->dirty_rows[i * 2] == 1)) { assert(vf->priv->dirty_rows[i * 2 + 1] == 1); for (j = 0, k = 0; j < vf->dmpi->chroma_width; ++j, k += 2) {