Mercurial > mplayer.hg
changeset 23037:c2c2bc418257
better fix for r23001, u_int becomes unsigned int, dont force it to uin32_t
author | ben |
---|---|
date | Sat, 21 Apr 2007 11:59:30 +0000 |
parents | 980da4e288f3 |
children | 9525b6aac600 |
files | vidix/pm2_vid.c |
diffstat | 1 files changed, 11 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/vidix/pm2_vid.c Sat Apr 21 11:02:49 2007 +0000 +++ b/vidix/pm2_vid.c Sat Apr 21 11:59:30 2007 +0000 @@ -76,17 +76,17 @@ { 0, 0, 0, 0 } }; -static uint32_t pm2_card_ids[] = +static unsigned int pm2_card_ids[] = { (VENDOR_3DLABS << 16) | DEVICE_3DLABS_PERMEDIA2, (VENDOR_TEXAS << 16) | DEVICE_TEXAS_TVP4020_PERMEDIA_2 }; -static int find_chip(uint32_t vendor, uint32_t chip_id) +static int find_chip(unsigned int vendor, uint32_t chip_id) { - uint32_t vci = (vendor << 16) | chip_id; + unsigned int vci = (vendor << 16) | chip_id; unsigned i; - for(i = 0; i < sizeof(pm2_card_ids)/sizeof(uint32_t); i++){ + for(i = 0; i < sizeof(pm2_card_ids)/sizeof(unsigned int); i++){ if(vci == pm2_card_ids[i]) return i; } return -1; @@ -186,7 +186,7 @@ #define PPROD(a,b,c) (a | (b << 3) | (c << 6)) -static uint32_t ppcodes[][2] = { +static unsigned int ppcodes[][2] = { {0, 0}, {32, PPROD(1, 0, 0)}, {64, PPROD(1, 1, 0)}, @@ -226,14 +226,14 @@ static int pm2_config_playback(vidix_playback_t *info) { - uint32_t src_w, drw_w; - uint32_t src_h, drw_h; + unsigned int src_w, drw_w; + unsigned int src_h, drw_h; long base0; - uint32_t stride, sstr; - uint32_t format; + unsigned int stride, sstr; + unsigned int format; unsigned int i; - uint32_t ppcode = 0, sppc = 0; - uint32_t pitch = 0; + unsigned int ppcode = 0, sppc = 0; + unsigned int pitch = 0; TRACE_ENTER();