From b591eb0a1886757e521a6d2ffe78bcb149397c55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Fri, 26 Dec 2003 18:37:58 +0000 Subject: Win32 mega update: - external ffmpeg (with some patches) built by MINGW works, wow! - cleanups (only one definition file for all plugins) - working release build target Notes to hybrid MINGW/MSVC build: - CVS version of ffmpeg is compiled by MINGW (small patch for compilation ffmpeg under MINGW, second for disabling flush because it crashes under windows) - libxine + xineui compiled by MSVC, additional patch into header files of ffmpeg is needed - export all data with '__declspec(dllimport)' CVS patchset: 5951 CVS date: 2003/12/26 18:37:58 --- src/libffmpeg/xine_decoder.c | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) (limited to 'src/libffmpeg') diff --git a/src/libffmpeg/xine_decoder.c b/src/libffmpeg/xine_decoder.c index 862e2fefc..029c869ba 100644 --- a/src/libffmpeg/xine_decoder.c +++ b/src/libffmpeg/xine_decoder.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: xine_decoder.c,v 1.146 2003/12/16 01:57:31 tmmm Exp $ + * $Id: xine_decoder.c,v 1.147 2003/12/26 18:37:59 valtri Exp $ * * xine decoder plugin using ffmpeg * @@ -47,10 +47,28 @@ #include "metronom.h" #include "xineutils.h" +#ifdef _MSC_VER +/* ffmpeg has own definitions of those types */ +# undef int8_t +# undef uint8_t +# undef int16_t +# undef uint16_t +# undef int32_t +# undef uint32_t +# undef int64_t +# undef uint64_t +#endif + #include "libavcodec/avcodec.h" #include "libavcodec/dsputil.h" #include "libavcodec/libpostproc/postprocess.h" +#ifdef _MSC_VER +# undef malloc +# undef free +# undef realloc +#endif + #define ENABLE_DIRECT_RENDERING #define SLICE_BUFFER_SIZE (1194 * 1024) @@ -427,7 +445,7 @@ static void find_sequence_header (ff_video_decoder_t *this, if (current == NULL) return ; - lprintf ("looking for sequence header... %02x\n", code); + lprintf ("looking for sequence header... %02x\n", code); /* mpeg2_stats (code, this->chunk_buffer); */ @@ -732,7 +750,7 @@ static void ff_convert_frame(ff_video_decoder_t *this, vo_frame_t *img) { static void ff_decode_data (video_decoder_t *this_gen, buf_element_t *buf) { ff_video_decoder_t *this = (ff_video_decoder_t *) this_gen; int codec_type; - + lprintf ("processing packet type = %08x, buf : %p, buf->decoder_flags=%08x\n", buf->type, buf, buf->decoder_flags); -- cgit v1.2.3