changeset 411:b13e87374f73 trunk

[svn] Care about pointer signedness.
author chainsaw
date Mon, 09 Jan 2006 12:30:26 -0800
parents 548073bede0b
children 451d2dc68ba8
files Plugins/Input/wma/libffwma/asf.c Plugins/Input/wma/libffwma/avcodec.h Plugins/Input/wma/libffwma/futils.c Plugins/Input/wma/libffwma/utils.c Plugins/Input/wma/libffwma/wmadec.c
diffstat 5 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/Plugins/Input/wma/libffwma/asf.c	Sun Jan 08 16:49:05 2006 -0800
+++ b/Plugins/Input/wma/libffwma/asf.c	Mon Jan 09 12:30:26 2006 -0800
@@ -757,7 +757,7 @@
 	    /* return packet */
 	    if (asf_st->ds_span > 1) {
 		/* packet descrambling */
-		char* newdata = malloc(asf_st->pkt.size);
+		unsigned char* newdata = malloc(asf_st->pkt.size);
 		if (newdata) {
 		    int offset = 0;
 		    while (offset < asf_st->pkt.size) {
--- a/Plugins/Input/wma/libffwma/avcodec.h	Sun Jan 08 16:49:05 2006 -0800
+++ b/Plugins/Input/wma/libffwma/avcodec.h	Mon Jan 09 12:30:26 2006 -0800
@@ -1760,7 +1760,7 @@
 /*char *av_strdup(const char *s);*/
 void __av_freep(void **ptr);
 #define av_freep(p) __av_freep((void **)(p))
-void *av_fast_realloc(void *ptr, unsigned int *size, unsigned int min_size);
+void *av_fast_realloc(void *ptr, int *size, unsigned int min_size);
 /* for static data only */
 /* call av_free_static to release all staticaly allocated tables */
 void av_free_static(void);
--- a/Plugins/Input/wma/libffwma/futils.c	Sun Jan 08 16:49:05 2006 -0800
+++ b/Plugins/Input/wma/libffwma/futils.c	Mon Jan 09 12:30:26 2006 -0800
@@ -2211,7 +2211,7 @@
                   AVImageFormat *fmt,
                   int (*alloc_cb)(void *, AVImageInfo *info), void *opaque)
 {
-    char buf[PROBE_BUF_SIZE];
+    unsigned char buf[PROBE_BUF_SIZE];
     AVProbeData probe_data, *pd = &probe_data;
     offset_t pos;
     int ret;
--- a/Plugins/Input/wma/libffwma/utils.c	Sun Jan 08 16:49:05 2006 -0800
+++ b/Plugins/Input/wma/libffwma/utils.c	Mon Jan 09 12:30:26 2006 -0800
@@ -40,7 +40,7 @@
 /**
  * realloc which does nothing if the block is large enough
  */
-void *av_fast_realloc(void *ptr, unsigned int *size, unsigned int min_size)
+void *av_fast_realloc(void *ptr, int *size, unsigned int min_size)
 {
 	if(min_size < *size) 
         	return ptr;
--- a/Plugins/Input/wma/libffwma/wmadec.c	Sun Jan 08 16:49:05 2006 -0800
+++ b/Plugins/Input/wma/libffwma/wmadec.c	Mon Jan 09 12:30:26 2006 -0800
@@ -858,7 +858,7 @@
             VLC *coef_vlc;
             int level, run, sign, tindex;
             int16_t *ptr, *eptr;
-            const int16_t *level_table, *run_table;
+            const uint16_t *level_table, *run_table;
 
             /* special VLC tables are used for ms stereo because
                there is potentially less energy there */