diff options
author | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-02-16 13:12:51 +0000 |
---|---|---|
committer | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-02-16 13:12:51 +0000 |
commit | dffc07faf5c1e391f6c18afce38647b59ab92831 (patch) | |
tree | 98ac0158e741e8f90dea1de9c71b1c6d64872fa7 /libvo/vo_x11.c | |
parent | 1de3804595626b0d262e1bbd90089f995d17ec0b (diff) | |
download | mpv-dffc07faf5c1e391f6c18afce38647b59ab92831.tar.bz2 mpv-dffc07faf5c1e391f6c18afce38647b59ab92831.tar.xz |
101 (NULL->srcW, NULL->srcH)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4727 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_x11.c')
-rw-r--r-- | libvo/vo_x11.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libvo/vo_x11.c b/libvo/vo_x11.c index e0fdf16532..1bf86248c5 100644 --- a/libvo/vo_x11.c +++ b/libvo/vo_x11.c @@ -538,13 +538,13 @@ static uint32_t draw_slice( uint8_t *src[],int stride[],int w,int h,int x,int y static uint32_t draw_frame( uint8_t *src[] ){ int stride[3]= {0,0,0}; - if (in_format==IMGFMT_YUY2) stride[0]=swsContext->srcW*2; - else if(in_format==IMGFMT_BGR15) stride[0]=swsContext->srcW*2; - else if(in_format==IMGFMT_BGR16) stride[0]=swsContext->srcW*2; - else if(in_format==IMGFMT_BGR24) stride[0]=swsContext->srcW*3; - else if(in_format==IMGFMT_BGR32) stride[0]=swsContext->srcW*4; + if (in_format==IMGFMT_YUY2) stride[0]=srcW*2; + else if(in_format==IMGFMT_BGR15) stride[0]=srcW*2; + else if(in_format==IMGFMT_BGR16) stride[0]=srcW*2; + else if(in_format==IMGFMT_BGR24) stride[0]=srcW*3; + else if(in_format==IMGFMT_BGR32) stride[0]=srcW*4; - return draw_slice(src, stride, swsContext->srcW, swsContext->srcH, 0, 0); + return draw_slice(src, stride, srcW, srcH, 0, 0); } static uint32_t query_format( uint32_t format ) |