diff options
author | František Dvořák <valtri@users.sourceforge.net> | 2003-12-26 18:37:58 +0000 |
---|---|---|
committer | František Dvořák <valtri@users.sourceforge.net> | 2003-12-26 18:37:58 +0000 |
commit | b591eb0a1886757e521a6d2ffe78bcb149397c55 (patch) | |
tree | 9794f58cf17b965a7e205cfe17663bd52854c580 /src | |
parent | d52f151b187a050797a0fd4d5f8ca8653fb9c3c6 (diff) | |
download | xine-lib-b591eb0a1886757e521a6d2ffe78bcb149397c55.tar.gz xine-lib-b591eb0a1886757e521a6d2ffe78bcb149397c55.tar.bz2 |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/libffmpeg/xine_decoder.c | 24 | ||||
-rw-r--r-- | src/xine-utils/xineutils.h | 4 |
2 files changed, 23 insertions, 5 deletions
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); diff --git a/src/xine-utils/xineutils.h b/src/xine-utils/xineutils.h index 01923051a..d70542506 100644 --- a/src/xine-utils/xineutils.h +++ b/src/xine-utils/xineutils.h @@ -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: xineutils.h,v 1.76 2003/12/21 14:14:39 mroi Exp $ + * $Id: xineutils.h,v 1.77 2003/12/26 18:37:59 valtri Exp $ * */ #ifndef XINEUTILS_H @@ -589,7 +589,7 @@ typedef union { but causes compiler warning with libxineutils */ #ifdef _MSC_VER -void __declspec( dllimport ) *(* xine_fast_memcpy)(void *to, const void *from, size_t len); +__declspec( dllimport ) extern void *(* xine_fast_memcpy)(void *to, const void *from, size_t len); #else extern void *(* xine_fast_memcpy)(void *to, const void *from, size_t len); #endif |