changeset 7487:e60109dfc85c

U-V swapping fixed, patch by Joey Parrish <joey@yunamusic.com>
author arpi
date Sun, 22 Sep 2002 18:43:53 +0000
parents 8dcbed9ff5db
children f5393c6c0cce
files libvo/vo_gif89a.c libvo/vo_jpeg.c
diffstat 2 files changed, 1 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_gif89a.c	Sun Sep 22 17:17:29 2002 +0000
+++ b/libvo/vo_gif89a.c	Sun Sep 22 18:43:53 2002 +0000
@@ -79,7 +79,7 @@
 	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:
--- a/libvo/vo_jpeg.c	Sun Sep 22 17:17:29 2002 +0000
+++ b/libvo/vo_jpeg.c	Sun Sep 22 18:43:53 2002 +0000
@@ -191,17 +191,6 @@
 
 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};