# HG changeset patch # User michael # Date 1027032271 0 # Node ID 82cfd2a8551908a2bf996f9a4d459186f06504a0 # Parent 6484f8f9f11190f5976af96c432efa236a5d13c8 fixing swscaler bug ;) diff -r 6484f8f9f111 -r 82cfd2a85519 libvo/vo_jpeg.c --- a/libvo/vo_jpeg.c Thu Jul 18 16:14:27 2002 +0000 +++ b/libvo/vo_jpeg.c Thu Jul 18 22:44:31 2002 +0000 @@ -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)