From: Miguel F. <mig...@us...> - 2005-10-23 12:56:38
|
Update of /cvsroot/xine/xine-lib/src/libffmpeg In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14924 Modified Files: audio_decoder.c diff_to_ffmpeg_cvs.txt Log Message: small fixes Index: audio_decoder.c =================================================================== RCS file: /cvsroot/xine/xine-lib/src/libffmpeg/audio_decoder.c,v retrieving revision 1.19 retrieving revision 1.20 diff -u -r1.19 -r1.20 --- audio_decoder.c 23 Oct 2005 02:47:18 -0000 1.19 +++ audio_decoder.c 23 Oct 2005 12:56:26 -0000 1.20 @@ -230,7 +230,7 @@ } } else if ((buf->decoder_flags & BUF_FLAG_SPECIAL) && (buf->decoder_info[1] == BUF_SPECIAL_STSD_ATOM)) { - + this->context->extradata_size = buf->decoder_info[2]; this->context->extradata = xine_xmalloc(buf->decoder_info[2] + FF_INPUT_BUFFER_PADDING_SIZE); @@ -334,7 +334,7 @@ this->size = 0; /* try to reset the wma decoder */ - if( this->context ) { + if( this->context && this->decoder_ok ) { avcodec_close (this->context); avcodec_open (this->context, this->codec); } @@ -347,7 +347,7 @@ ff_audio_decoder_t *this = (ff_audio_decoder_t *) this_gen; - if( this->context ) + if( this->context && this->decoder_ok ) avcodec_close (this->context); if (this->output_open) Index: diff_to_ffmpeg_cvs.txt =================================================================== RCS file: /cvsroot/xine/xine-lib/src/libffmpeg/diff_to_ffmpeg_cvs.txt,v retrieving revision 1.31 retrieving revision 1.32 diff -u -r1.31 -r1.32 --- diff_to_ffmpeg_cvs.txt 23 Oct 2005 02:11:16 -0000 1.31 +++ diff_to_ffmpeg_cvs.txt 23 Oct 2005 12:56:26 -0000 1.32 @@ -4,7 +4,7 @@ retrieving revision 1.426 diff -u -r1.426 avcodec.h --- libavcodec/avcodec.h 20 Oct 2005 20:04:45 -0000 1.426 -+++ libavcodec/avcodec.h 23 Oct 2005 00:27:23 -0000 ++++ libavcodec/avcodec.h 23 Oct 2005 12:33:01 -0000 @@ -31,6 +31,13 @@ #define AV_TIME_BASE 1000000 #define AV_TIME_BASE_Q (AVRational){1, AV_TIME_BASE} @@ -39,7 +39,7 @@ retrieving revision 1.125 diff -u -r1.125 dsputil.c --- libavcodec/dsputil.c 14 Aug 2005 15:42:39 -0000 1.125 -+++ libavcodec/dsputil.c 23 Oct 2005 00:27:39 -0000 ++++ libavcodec/dsputil.c 23 Oct 2005 12:33:20 -0000 @@ -371,6 +371,8 @@ assert(s>=0); @@ -55,7 +55,7 @@ retrieving revision 1.120 diff -u -r1.120 dsputil.h --- libavcodec/dsputil.h 19 Sep 2005 23:26:47 -0000 1.120 -+++ libavcodec/dsputil.h 23 Oct 2005 00:27:41 -0000 ++++ libavcodec/dsputil.h 23 Oct 2005 12:33:24 -0000 @@ -31,6 +31,9 @@ #include "common.h" #include "avcodec.h" @@ -72,7 +72,7 @@ retrieving revision 1.110 diff -u -r1.110 motion_est.c --- libavcodec/motion_est.c 26 Aug 2005 19:05:44 -0000 1.110 -+++ libavcodec/motion_est.c 23 Oct 2005 00:27:55 -0000 ++++ libavcodec/motion_est.c 23 Oct 2005 12:33:36 -0000 @@ -20,6 +20,9 @@ * * new Motion Estimation (X1/EPZS) by Michael Niedermayer <mic...@gm...> @@ -95,7 +95,7 @@ retrieving revision 1.242 diff -u -r1.242 mpeg12.c --- libavcodec/mpeg12.c 14 Aug 2005 15:42:39 -0000 1.242 -+++ libavcodec/mpeg12.c 23 Oct 2005 00:28:10 -0000 ++++ libavcodec/mpeg12.c 23 Oct 2005 12:34:08 -0000 @@ -34,6 +34,13 @@ //#include <assert.h> @@ -142,7 +142,7 @@ retrieving revision 1.488 diff -u -r1.488 mpegvideo.c --- libavcodec/mpegvideo.c 14 Aug 2005 15:42:40 -0000 1.488 -+++ libavcodec/mpegvideo.c 23 Oct 2005 00:28:41 -0000 ++++ libavcodec/mpegvideo.c 23 Oct 2005 12:35:02 -0000 @@ -38,6 +38,14 @@ //#undef NDEBUG //#include <assert.h> @@ -451,7 +451,7 @@ retrieving revision 1.63 diff -u -r1.63 snow.c --- libavcodec/snow.c 21 Sep 2005 23:09:16 -0000 1.63 -+++ libavcodec/snow.c 23 Oct 2005 00:28:57 -0000 ++++ libavcodec/snow.c 23 Oct 2005 12:35:34 -0000 @@ -2037,6 +2037,7 @@ #define P_MV1 P[9] #define FLAG_QPEL 1 //must be 1 @@ -538,7 +538,7 @@ retrieving revision 1.160 diff -u -r1.160 utils.c --- libavcodec/utils.c 20 Sep 2005 21:43:45 -0000 1.160 -+++ libavcodec/utils.c 23 Oct 2005 00:29:04 -0000 ++++ libavcodec/utils.c 23 Oct 2005 12:35:47 -0000 @@ -1241,11 +1241,11 @@ AVClass* avc= ptr ? *(AVClass**)ptr : NULL; if(level>av_log_level) @@ -559,7 +559,7 @@ retrieving revision 1.104 diff -u -r1.104 dsputil_mmx.c --- libavcodec/i386/dsputil_mmx.c 9 Oct 2005 23:38:52 -0000 1.104 -+++ libavcodec/i386/dsputil_mmx.c 23 Oct 2005 00:29:19 -0000 ++++ libavcodec/i386/dsputil_mmx.c 23 Oct 2005 12:36:21 -0000 @@ -617,31 +617,32 @@ } @@ -616,7 +616,7 @@ retrieving revision 1.15 diff -u -r1.15 dsputil_mlib.c --- libavcodec/mlib/dsputil_mlib.c 15 Mar 2004 01:21:01 -0000 1.15 -+++ libavcodec/mlib/dsputil_mlib.c 23 Oct 2005 00:29:21 -0000 ++++ libavcodec/mlib/dsputil_mlib.c 23 Oct 2005 12:36:24 -0000 @@ -20,6 +20,8 @@ #include "../dsputil.h" #include "../mpegvideo.h" @@ -659,38 +659,47 @@ retrieving revision 1.153 diff -u -r1.153 common.h --- libavutil/common.h 19 Sep 2005 23:26:47 -0000 1.153 -+++ libavutil/common.h 23 Oct 2005 00:29:24 -0000 -@@ -6,6 +6,11 @@ ++++ libavutil/common.h 23 Oct 2005 12:36:30 -0000 +@@ -6,6 +6,12 @@ #ifndef COMMON_H #define COMMON_H +/* xine: disable DEBUG for ffmpeg (too noisy) */ +#ifdef DEBUG +#undef DEBUG ++#define DISABLE_INLINE +#endif + #if defined(WIN32) && !defined(__MINGW32__) && !defined(__CYGWIN__) # define CONFIG_WIN32 #endif -@@ -186,7 +191,7 @@ +@@ -185,8 +191,10 @@ + #ifdef HAVE_AV_CONFIG_H ++#if 0 #ifdef USE_FASTMEMCPY -#include "fastmemcpy.h" + #define memcpy(to, from, len) xine_fast_memcpy(to, from, len) ++#endif #endif #include <float.h> -@@ -206,7 +211,7 @@ +@@ -205,10 +213,12 @@ + #ifdef HAVE_AV_CONFIG_H ++#if 0 # ifdef USE_FASTMEMCPY -# include "fastmemcpy.h" +# define memcpy(to, from, len) xine_fast_memcpy(to, from, len) # endif # endif /* HAVE_AV_CONFIG_H */ ++#endif -@@ -235,7 +240,9 @@ + #endif /* !CONFIG_WIN32 && !CONFIG_OS2 */ + +@@ -235,7 +245,9 @@ /* debug stuff */ # ifndef DEBUG @@ -700,7 +709,7 @@ # endif # include <assert.h> -@@ -530,8 +537,8 @@ +@@ -530,8 +542,8 @@ #define sprintf sprintf_is_forbidden_due_to_security_issues_use_snprintf #define strcat strcat_is_forbidden_due_to_security_issues_use_pstrcat #if !(defined(LIBAVFORMAT_BUILD) || defined(_FRAMEHOOK_H)) @@ -711,3 +720,20 @@ #endif #define CHECKED_ALLOCZ(p, size)\ +@@ -574,4 +586,16 @@ + + #endif /* HAVE_AV_CONFIG_H */ + ++/* xine: inline causes trouble for debug compiling */ ++#ifdef DISABLE_INLINE ++# ifdef inline ++# undef inline ++# endif ++# ifdef always_inline ++# undef always_inline ++# endif ++# define inline ++# define always_inline ++#endif ++ + #endif /* COMMON_H */ |