# HG changeset patch # User reimar # Date 1390053871 0 # Node ID fe7d63062afb401591fbe60676203f501f3d128c # Parent 8057935cd9e0a5715cf3ac405bf5f19ea5a3c281 vo_bl: consistently multiply by "channels". Currently makes no difference since it is always 1. diff -r 8057935cd9e0 -r fe7d63062afb libvo/vo_bl.c --- a/libvo/vo_bl.c Sat Jan 18 13:59:00 2014 +0000 +++ b/libvo/vo_bl.c Sat Jan 18 14:04:31 2014 +0000 @@ -155,8 +155,8 @@ fprintf(f->fp, " \n", duration); for (j = 0; j < bl->height; j++) { fprintf(f->fp, " "); - for (k = 0; k < bl->width; k++) - fprintf(f->fp, "%02x", *(i + j * bl->width + k)); + for (k = 0; k < bl->width * bl->channels; k++) + fprintf(f->fp, "%02x", *(i + j * bl->width * bl->channels + k)); fprintf(f->fp, "\n"); } fprintf(f->fp, " \n"); @@ -335,7 +335,8 @@ } static uint32_t draw_image(mp_image_t *mpi) { - memcpy_pic(image, mpi->planes[0], mpi->w, mpi->h, bl->width, mpi->stride[0]); + memcpy_pic(image, mpi->planes[0], mpi->w * bl->channels, mpi->h, + bl->width * bl->channels, mpi->stride[0]); return VO_TRUE; }