mirror of https://github.com/mpv-player/mpv
U-V swapping fixed, patch by Joey Parrish <joey@yunamusic.com>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7488 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
429c2810c9
commit
8f072bbc54
|
@ -79,7 +79,7 @@ static uint32_t config
|
|||
case IMGFMT_RGB24:
|
||||
break;
|
||||
case IMGFMT_YV12:
|
||||
yuv2rgb_init(24, MODE_RGB);
|
||||
yuv2rgb_init(24, MODE_BGR);
|
||||
image_data = malloc(image_width*image_height*3);
|
||||
break;
|
||||
default:
|
||||
|
|
|
@ -191,17 +191,6 @@ static void flip_page (void)
|
|||
|
||||
static uint32_t draw_slice( uint8_t *src[],int stride[],int w,int h,int x,int y )
|
||||
{
|
||||
// hack: swap planes for I420 ;) -- alex
|
||||
if ((image_format == IMGFMT_IYUV) || (image_format == IMGFMT_I420))
|
||||
{
|
||||
uint8_t *src_i420[3];
|
||||
|
||||
src_i420[0]=src[0];
|
||||
src_i420[1]=src[2];
|
||||
src_i420[2]=src[1];
|
||||
src=src_i420;
|
||||
}
|
||||
|
||||
if (scale_srcW)
|
||||
{
|
||||
uint8_t *dst[3]={image_data, NULL, NULL};
|
||||
|
|
Loading…
Reference in New Issue