changeset 290:7a3ed84008ec libavformat

GCC 3.3.2 warnings patch by (Panagiotis Issaris <takis at lumumba dot luc dot ac dot be>)
author michael
date Sun, 26 Oct 2003 10:49:49 +0000
parents 4baa098c12c3
children b19f70a6d60f
files ogg.c utils.c
diffstat 2 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/ogg.c	Sat Oct 25 04:41:53 2003 +0000
+++ b/ogg.c	Sun Oct 26 10:49:49 2003 +0000
@@ -90,7 +90,7 @@
 
 static int ogg_write_packet(AVFormatContext *avfcontext,
 			    int stream_index,
-			    unsigned char *buf, int size, int force_pts)
+			    const uint8_t *buf, int size, int64_t force_pts)
 {
     OggContext *context = avfcontext->priv_data ;
     ogg_packet *op ;
@@ -110,7 +110,7 @@
 
     while(l < size) {
 	op = (ogg_packet*)(buf + l) ;
-	op->packet = buf + l + sizeof(ogg_packet) ; /* fix data pointer */
+	op->packet = (uint8_t*) buf + l + sizeof( ogg_packet) ; /* fix data pointer */
 
 	if(!context->base_packet_no) { /* this is the first packet */
 	    context->base_packet_no = op->packetno ; 
--- a/utils.c	Sat Oct 25 04:41:53 2003 +0000
+++ b/utils.c	Sun Oct 26 10:49:49 2003 +0000
@@ -294,7 +294,7 @@
 {
     AVFormatContext *ic = NULL;
     int err, must_open_file;
-    char buf[PROBE_BUF_SIZE];
+    unsigned char buf[PROBE_BUF_SIZE];
     AVProbeData probe_data, *pd = &probe_data;
 
     ic = av_mallocz(sizeof(AVFormatContext));
@@ -1440,8 +1440,8 @@
                        const char *path, int number)
 {
     const char *p;
-    char *q, buf1[20];
-    int nd, len, c, percentd_found;
+    char *q, buf1[20], c;
+    int nd, len, percentd_found;
 
     q = buf;
     p = path;