Mercurial > mplayer.hg
changeset 22866:234c5f92d585
killed warnings in unichrome driver
author | ben |
---|---|
date | Sun, 01 Apr 2007 12:48:32 +0000 |
parents | 441582f3ed87 |
children | d76307ffcb77 |
files | vidix/unichrome_vid.c |
diffstat | 1 files changed, 5 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/vidix/unichrome_vid.c Sun Apr 01 12:39:06 2007 +0000 +++ b/vidix/unichrome_vid.c Sun Apr 01 12:48:32 2007 +0000 @@ -151,7 +151,7 @@ * See ddover.c, DDOVER_HQVCalcZoomHeight() */ static int -uc_ovl_map_vzoom (int sh, int dh, uint32_t * zoom, uint32_t * mini) +uc_ovl_map_vzoom (uint32_t sh, uint32_t dh, uint32_t * zoom, uint32_t * mini) { uint32_t sh1, tmp, d; int zoom_ok = 1; @@ -215,7 +215,7 @@ * See ddover.c, DDOVER_HQVCalcZoomWidth() and DDOver_GetDisplayCount() */ static int -uc_ovl_map_hzoom (int sw, int dw, uint32_t * zoom, uint32_t * mini, +uc_ovl_map_hzoom (uint32_t sw, uint32_t dw, uint32_t * zoom, uint32_t * mini, int *falign, int *dcount) { uint32_t tmp, sw1, d; @@ -757,8 +757,8 @@ { int src_w, drw_w; int src_h, drw_h; - long base0, pitch; - int uv_size, swap_uv; + long base0, pitch = 0; + int uv_size = 0, swap_uv; unsigned int i; int extfifo_on; @@ -766,7 +766,6 @@ uint32_t win_start, win_end; uint32_t zoom, mini; uint32_t dcount, falign, qwfetch; - uint32_t y_start, u_start, v_start; uint32_t v_ctrl, fifo_ctrl; if (!is_supported_fourcc (info->fourcc)) @@ -793,7 +792,7 @@ zoom = 0; mini = 0; uc_ovl_map_vzoom (src_h, drw_h, &zoom, &mini); - uc_ovl_map_hzoom (src_w, drw_w, &zoom, &mini, &falign, &dcount); + uc_ovl_map_hzoom (src_w, drw_w, &zoom, &mini, (int *) &falign, (int *) &dcount); qwfetch = uc_ovl_map_qwfetch (info->fourcc, src_w); /* Calculate buffer sizes */