summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorrfelker <rfelker@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-02-24 17:08:54 +0000
committerrfelker <rfelker@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-02-24 17:08:54 +0000
commitdf48e121b022acfbb80ffab46abb6edc44079568 (patch)
tree425f592999bf0179144be5e13dff0844371ef511 /libvo
parent7a58560c9a664c1a973da124a5f498d69da5408e (diff)
downloadmpv-df48e121b022acfbb80ffab46abb6edc44079568.tar.bz2
mpv-df48e121b022acfbb80ffab46abb6edc44079568.tar.xz
strides should always be signed
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14797 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_vesa.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libvo/vo_vesa.c b/libvo/vo_vesa.c
index 2dc0204916..a9adc8301f 100644
--- a/libvo/vo_vesa.c
+++ b/libvo/vo_vesa.c
@@ -277,7 +277,7 @@ static void __vbeCopyData(uint8_t *image)
/* is called for yuv only */
static uint32_t draw_slice(uint8_t *image[], int stride[], int w,int h,int x,int y)
{
- unsigned int dstride=HAS_DGA()?video_mode_info.XResolution:dstW;
+ int dstride=HAS_DGA()?video_mode_info.XResolution:dstW;
uint8_t *dst[3]= {dga_buffer, NULL, NULL};
int dstStride[3];
if(verbose > 2)
@@ -296,7 +296,7 @@ static uint32_t draw_slice(uint8_t *image[], int stride[], int w,int h,int x,int
static void draw_alpha_32(int x0,int y0, int w,int h, unsigned char* src, unsigned char *srca, int stride)
{
- unsigned int dstride=HAS_DGA()?video_mode_info.XResolution:dstW;
+ int dstride=HAS_DGA()?video_mode_info.XResolution:dstW;
#ifndef OSD_OUTSIDE_MOVIE
if(HAS_DGA())
{
@@ -309,7 +309,7 @@ static void draw_alpha_32(int x0,int y0, int w,int h, unsigned char* src, unsign
static void draw_alpha_24(int x0,int y0, int w,int h, unsigned char* src, unsigned char *srca, int stride)
{
- unsigned int dstride=HAS_DGA()?video_mode_info.XResolution:dstW;
+ int dstride=HAS_DGA()?video_mode_info.XResolution:dstW;
#ifndef OSD_OUTSIDE_MOVIE
if(HAS_DGA())
{
@@ -322,7 +322,7 @@ static void draw_alpha_24(int x0,int y0, int w,int h, unsigned char* src, unsign
static void draw_alpha_16(int x0,int y0, int w,int h, unsigned char* src, unsigned char *srca, int stride)
{
- unsigned int dstride=HAS_DGA()?video_mode_info.XResolution:dstW;
+ int dstride=HAS_DGA()?video_mode_info.XResolution:dstW;
#ifndef OSD_OUTSIDE_MOVIE
if(HAS_DGA())
{
@@ -335,7 +335,7 @@ static void draw_alpha_16(int x0,int y0, int w,int h, unsigned char* src, unsign
static void draw_alpha_15(int x0,int y0, int w,int h, unsigned char* src, unsigned char *srca, int stride)
{
- unsigned int dstride=HAS_DGA()?video_mode_info.XResolution:dstW;
+ int dstride=HAS_DGA()?video_mode_info.XResolution:dstW;
#ifndef OSD_OUTSIDE_MOVIE
if(HAS_DGA())
{
@@ -416,7 +416,7 @@ static uint32_t draw_frame(uint8_t *src[])
printf("vo_vesa: draw_frame was called\n");
if(sws)
{
- unsigned int dstride=HAS_DGA()?video_mode_info.XResolution:dstW;
+ int dstride=HAS_DGA()?video_mode_info.XResolution:dstW;
int srcStride[1];
uint8_t *dst[3]= {dga_buffer, NULL, NULL};
int dstStride[3];