[MPlayer-cvslog] r34973 - trunk/libmpcodecs/vf_ass.c
reimar
subversion at mplayerhq.hu
Tue May 29 20:32:36 CEST 2012
Author: reimar
Date: Tue May 29 20:32:35 2012
New Revision: 34973
Log:
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.
Modified:
trunk/libmpcodecs/vf_ass.c
Modified: trunk/libmpcodecs/vf_ass.c
==============================================================================
--- trunk/libmpcodecs/vf_ass.c Sun May 27 20:12:42 2012 (r34972)
+++ trunk/libmpcodecs/vf_ass.c Tue May 29 20:32:35 2012 (r34973)
@@ -280,7 +280,7 @@ static void copy_to_image(struct vf_inst
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) {
More information about the MPlayer-cvslog
mailing list