[Mplayer-cvslog] CVS: main/libmpcodecs vd_cyuv.c,1.2,1.3

Mike Melanson melanson at mplayer.dev.hu
Tue Mar 26 06:03:14 CET 2002


Update of /cvsroot/mplayer/main/libmpcodecs
In directory mplayer:/var/tmp.root/cvs-serv8283/libmpcodecs

Modified Files:
	vd_cyuv.c 
Log Message:
added YUY2 output to the widely used (heh) CYUV decoder because it seemed
like a good idea...isn't YUY2 better supported that UYVY?


Index: vd_cyuv.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vd_cyuv.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- vd_cyuv.c	16 Mar 2002 01:10:31 -0000	1.2
+++ vd_cyuv.c	26 Mar 2002 05:03:10 -0000	1.3
@@ -39,7 +39,7 @@
   unsigned char *frame,
   int width,
   int height,
-  int bit_per_pixel);
+  int format);
 
 // decode a frame
 static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags){
@@ -50,7 +50,8 @@
 	sh->disp_w, sh->disp_h);
     if(!mpi) return NULL;
 
-    decode_cyuv(data, len, mpi->planes[0], sh->disp_w, sh->disp_h, 0);
+    decode_cyuv(data, len, mpi->planes[0], sh->disp_w, sh->disp_h,
+      sh->codec->outfmt[sh->outfmtidx]);
 
     return mpi;
 }




More information about the MPlayer-cvslog mailing list