[Mplayer-cvslog] CVS: main/libvo jpeg_enc.c,1.2,1.3

Rik Snel CVS rik at mplayer.dev.hu
Wed Feb 13 00:30:11 CET 2002


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

Modified Files:
	jpeg_enc.c 
Log Message:
we are now able to use the new bitwriter code in libavcodec

Index: jpeg_enc.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/jpeg_enc.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- jpeg_enc.c	11 Feb 2002 01:24:56 -0000	1.2
+++ jpeg_enc.c	12 Feb 2002 23:30:07 -0000	1.3
@@ -32,6 +32,9 @@
 #include "fastmemcpy.h"
 #endif
 #include "../mp_msg.h"
+/* We need this #define because we need ../libavcodec/common.h to #define 
+ * be2me_32, otherwise the linker will complain that it doesn't exist */
+#define HAVE_AV_CONFIG_H
 #include "../libavcodec/avcodec.h"
 #include "../libavcodec/dsputil.h"
 #include "../libavcodec/mpegvideo.h"
@@ -440,7 +443,7 @@
 	if (j->s->mjpeg_write_tables == 1)
 		j->s->mjpeg_write_tables = 0;
 	
-	return j->s->pb.buf_ptr - j->s->pb.buf;
+	return pbBufPtr(&(j->s->pb)) - j->s->pb.buf;
 }
 
 void jpeg_enc_uninit(jpeg_enc_t *j) {




More information about the MPlayer-cvslog mailing list