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

reimar subversion at mplayerhq.hu
Sat Mar 24 20:10:07 CET 2012


Author: reimar
Date: Sat Mar 24 20:10:07 2012
New Revision: 34826

Log:
Remove some pointless variable indirection and merge
declaration and initialization.

Modified:
   trunk/libvo/vo_bl.c

Modified: trunk/libvo/vo_bl.c
==============================================================================
--- trunk/libvo/vo_bl.c	Sat Mar 24 20:07:26 2012	(r34825)
+++ trunk/libvo/vo_bl.c	Sat Mar 24 20:10:07 2012	(r34826)
@@ -328,12 +328,10 @@ static void check_events(void) {
 }
 
 static int draw_slice(uint8_t *srcimg[], int stride[],
-		int wf, int hf, int xf, int yf) {
-	int i, w, h, x, y;
-	uint8_t *dst;
+		int w, int h, int x, int y) {
+	int i;
+	uint8_t *dst = image + y * bl->width + x;
 	uint8_t *src=srcimg[0];
-	w = wf; h = hf; x = xf; y = yf;
-	dst = image + y * bl->width + x;
 	// copy Y:
 	for (i = 0; i < h; i++) {
 		fast_memcpy(dst,src,w);


More information about the MPlayer-cvslog mailing list