summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFrantišek Dvořák <valtri@users.sourceforge.net>2006-09-13 23:10:50 +0000
committerFrantišek Dvořák <valtri@users.sourceforge.net>2006-09-13 23:10:50 +0000
commit31e71bd6ac7973b89490648fe663bd9a2ec0307d (patch)
treeed7d08fe37033d20ab1b3180abdb74140a7d451f /src
parentd3f98c695c5a4013320eb3e9cd71394ea9fec234 (diff)
downloadxine-lib-31e71bd6ac7973b89490648fe663bd9a2ec0307d.tar.gz
xine-lib-31e71bd6ac7973b89490648fe663bd9a2ec0307d.tar.bz2
Fix the debug build.
CVS patchset: 8230 CVS date: 2006/09/13 23:10:50
Diffstat (limited to 'src')
-rw-r--r--src/libffmpeg/diff_to_ffmpeg_cvs.txt38
-rw-r--r--src/libffmpeg/libavutil/integer.c4
-rw-r--r--src/libffmpeg/libavutil/internal.h6
3 files changed, 45 insertions, 3 deletions
diff --git a/src/libffmpeg/diff_to_ffmpeg_cvs.txt b/src/libffmpeg/diff_to_ffmpeg_cvs.txt
index ebaaf8225..617712ef3 100644
--- a/src/libffmpeg/diff_to_ffmpeg_cvs.txt
+++ b/src/libffmpeg/diff_to_ffmpeg_cvs.txt
@@ -487,3 +487,41 @@
+#endif
+
#endif /* COMMON_H */
+Index: libavutil/integer.c
+===================================================================
+RCS file: /cvsroot/xine/xine-lib/src/libffmpeg/libavutil/integer.c,v
+retrieving revision 1.2
+diff -u -p -r1.2 integer.c
+--- libavutil/integer.c 2 Aug 2006 07:12:57 -0000 1.2
++++ libavutil/integer.c 13 Sep 2006 21:05:42 -0000
+@@ -124,8 +124,8 @@ AVInteger av_mod_i(AVInteger *quot, AVIn
+ AVInteger quot_temp;
+ if(!quot) quot = &quot_temp;
+
+- assert((int16_t)a[AV_INTEGER_SIZE-1] >= 0 && (int16_t)b[AV_INTEGER_SIZE-1] >= 0);
+- assert(av_log2(b)>=0);
++ assert((int16_t)a.v[AV_INTEGER_SIZE-1] >= 0 && (int16_t)b.v[AV_INTEGER_SIZE-1] >= 0);
++ assert(av_log2_i(b)>=0);
+
+ if(i > 0)
+ b= av_shr_i(b, -i);
+Index: libavutil/internal.h
+===================================================================
+RCS file: /cvsroot/xine/xine-lib/src/libffmpeg/libavutil/internal.h,v
+retrieving revision 1.1
+diff -u -p -r1.1 internal.h
+--- libavutil/internal.h 2 Aug 2006 07:39:20 -0000 1.1
++++ libavutil/internal.h 13 Sep 2006 21:05:42 -0000
+@@ -87,7 +87,11 @@
+
+ /* dprintf macros */
+ # ifdef DEBUG
+-# define dprintf(fmt,...) av_log(NULL, AV_LOG_DEBUG, fmt, __VA_ARGS__)
++# ifdef __GNUC__
++# define dprintf(fmt,args...) av_log(NULL, AV_LOG_DEBUG, fmt, ##args)
++# else
++# define dprintf(fmt,...) av_log(NULL, AV_LOG_DEBUG, fmt, __VA_ARGS__)
++# endif
+ # else
+ # define dprintf(fmt,...)
+ # endif
diff --git a/src/libffmpeg/libavutil/integer.c b/src/libffmpeg/libavutil/integer.c
index 98c3df35d..1820dbf59 100644
--- a/src/libffmpeg/libavutil/integer.c
+++ b/src/libffmpeg/libavutil/integer.c
@@ -124,8 +124,8 @@ AVInteger av_mod_i(AVInteger *quot, AVInteger a, AVInteger b){
AVInteger quot_temp;
if(!quot) quot = &quot_temp;
- assert((int16_t)a[AV_INTEGER_SIZE-1] >= 0 && (int16_t)b[AV_INTEGER_SIZE-1] >= 0);
- assert(av_log2(b)>=0);
+ assert((int16_t)a.v[AV_INTEGER_SIZE-1] >= 0 && (int16_t)b.v[AV_INTEGER_SIZE-1] >= 0);
+ assert(av_log2_i(b)>=0);
if(i > 0)
b= av_shr_i(b, -i);
diff --git a/src/libffmpeg/libavutil/internal.h b/src/libffmpeg/libavutil/internal.h
index a13061575..266976c94 100644
--- a/src/libffmpeg/libavutil/internal.h
+++ b/src/libffmpeg/libavutil/internal.h
@@ -87,7 +87,11 @@
/* dprintf macros */
# ifdef DEBUG
-# define dprintf(fmt,...) av_log(NULL, AV_LOG_DEBUG, fmt, __VA_ARGS__)
+# ifdef __GNUC__
+# define dprintf(fmt,args...) av_log(NULL, AV_LOG_DEBUG, fmt, ##args)
+# else
+# define dprintf(fmt,...) av_log(NULL, AV_LOG_DEBUG, fmt, __VA_ARGS__)
+# endif
# else
# define dprintf(fmt,...)
# endif