summaryrefslogtreecommitdiffstats
path: root/libvo/jpeg_enc.c
diff options
context:
space:
mode:
authorrik <rik@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-02-12 23:30:07 +0000
committerrik <rik@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-02-12 23:30:07 +0000
commit9883b4d34911764c78eada733289328a2d6d53cd (patch)
treef3f559b9e3d63ef409e27d07a0cf60dd0ffd65dd /libvo/jpeg_enc.c
parent859ae44c0a72538513a141731f556f9b741d8fea (diff)
downloadmpv-9883b4d34911764c78eada733289328a2d6d53cd.tar.bz2
mpv-9883b4d34911764c78eada733289328a2d6d53cd.tar.xz
we are now able to use the new bitwriter code in libavcodec
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4684 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/jpeg_enc.c')
-rw-r--r--libvo/jpeg_enc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libvo/jpeg_enc.c b/libvo/jpeg_enc.c
index f81e289b77..132a030081 100644
--- a/libvo/jpeg_enc.c
+++ b/libvo/jpeg_enc.c
@@ -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 @@ int jpeg_enc_frame(jpeg_enc_t *j, unsigned char *y_data,
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) {