Mercurial > mplayer.hg
changeset 34738:fcff55a05c24
Remove some pointless variable indirection and merge
declaration and initialization.
author | reimar |
---|---|
date | Sat, 24 Mar 2012 19:10:07 +0000 |
parents | 57e2929317bf |
children | 8e8688010194 |
files | libvo/vo_bl.c |
diffstat | 1 files changed, 3 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vo_bl.c Sat Mar 24 19:07:26 2012 +0000 +++ b/libvo/vo_bl.c Sat Mar 24 19:10:07 2012 +0000 @@ -328,12 +328,10 @@ } 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);