From 486f2702861ece43758b1f13dd9dede51ea2cb98 Mon Sep 17 00:00:00 2001 From: michael Date: Thu, 18 Jul 2002 22:44:31 +0000 Subject: fixing swscaler bug ;) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6752 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_jpeg.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'libvo/vo_jpeg.c') diff --git a/libvo/vo_jpeg.c b/libvo/vo_jpeg.c index 15c5d1d596..ce16ee44b1 100644 --- a/libvo/vo_jpeg.c +++ b/libvo/vo_jpeg.c @@ -154,6 +154,7 @@ static uint32_t jpeg_write( uint8_t * name,uint8_t * buffer ) 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 @@ static uint32_t draw_frame(uint8_t * src[]) { 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) -- cgit v1.2.3