[MPlayer-cvslog] r36609 - trunk/libvo/vo_bl.c

reimar subversion at mplayerhq.hu
Sat Jan 18 15:04:31 CET 2014


Author: reimar
Date: Sat Jan 18 15:04:31 2014
New Revision: 36609

Log:
vo_bl: consistently multiply by "channels".

Currently makes no difference since it is always 1.

Modified:
   trunk/libvo/vo_bl.c

Modified: trunk/libvo/vo_bl.c
==============================================================================
--- trunk/libvo/vo_bl.c	Sat Jan 18 14:59:00 2014	(r36608)
+++ trunk/libvo/vo_bl.c	Sat Jan 18 15:04:31 2014	(r36609)
@@ -155,8 +155,8 @@ static void bml_write_frame(bl_file_t *f
 	fprintf(f->fp, "    <frame duration=\"%d\">\n", duration);
 	for (j = 0; j < bl->height; j++) {
 		fprintf(f->fp, "        <row>");
-		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, "</row>\n");
 	}
 	fprintf(f->fp, "    </frame>\n");
@@ -335,7 +335,8 @@ static void check_events(void) {
 }
 
 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;
 }
 


More information about the MPlayer-cvslog mailing list