[Mplayer-cvslog] CVS: main/libvo vo_jpeg.c,1.3,1.4

Michael Niedermayer michael at mplayerhq.hu
Fri Jul 19 00:44:35 CEST 2002


Update of /cvsroot/mplayer/main/libvo
In directory mail:/var/tmp.root/cvs-serv23871

Modified Files:
	vo_jpeg.c 
Log Message:
fixing swscaler bug ;)


Index: vo_jpeg.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_jpeg.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- vo_jpeg.c	17 Apr 2002 18:37:11 -0000	1.3
+++ vo_jpeg.c	18 Jul 2002 22:44:31 -0000	1.4
@@ -154,6 +154,7 @@
 static uint32_t draw_frame(uint8_t * src[])
 {
  char buf[256];
+ uint8_t *dst= src[0];
     
  snprintf (buf, 256, "%s/%08d.jpg", jpeg_outdir, ++framenum);
 
@@ -161,14 +162,14 @@
   {
    rgb32to24( src[0],image_data,image_width * image_height * 4 );
    rgb24tobgr24( image_data,image_data,image_width * image_height * 3 );
-   src[0]=image_data;
+   dst=image_data;
   }
  if ( image_format == IMGFMT_BGR24 )
   {
    rgb24tobgr24( src[0],image_data,image_width * image_height * 3 );
-   src[0]=image_data;
+   dst=image_data;
   }
- return jpeg_write( buf,src[0] );
+ return jpeg_write( buf,dst );
 }
 
 static void draw_osd(void)




More information about the MPlayer-cvslog mailing list