changeset 1337:229734e5c3ef libavformat

remove gcc warnings about void * used in arithmetic
author bcoudurier
date Fri, 29 Sep 2006 10:28:11 +0000
parents 06a5d191774d
children 531c75b73254
files mov.c
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/mov.c	Thu Sep 28 17:59:26 2006 +0000
+++ b/mov.c	Fri Sep 29 10:28:11 2006 +0000
@@ -649,7 +649,7 @@
 
     if (st->codec->extradata) {
         strcpy(st->codec->extradata, "SVQ3"); // fake
-        get_buffer(pb, st->codec->extradata + 0x5a, atom.size);
+        get_buffer(pb, (uint8_t *)st->codec->extradata + 0x5a, atom.size);
         dprintf("Reading SMI %"PRId64"  %s\n", atom.size, (char*)st->codec->extradata + 0x5a);
     } else
         url_fskip(pb, atom.size);
@@ -689,8 +689,8 @@
     st->codec->extradata = (uint8_t*) av_mallocz(st->codec->extradata_size + FF_INPUT_BUFFER_PADDING_SIZE);
 
     if (st->codec->extradata) {
-        strcpy(st->codec->extradata + 4, "alac"); // fake
-        get_buffer(pb, st->codec->extradata + 8, 36 - 8);
+        strcpy((char *)st->codec->extradata + 4, "alac"); // fake
+        get_buffer(pb, (uint8_t *)st->codec->extradata + 8, 36 - 8);
         dprintf("Reading alac %d  %s\n", st->codec->extradata_size, (char*)st->codec->extradata);
     } else
         url_fskip(pb, atom.size);
@@ -735,8 +735,8 @@
 
     /* pass all jp2h atom to codec */
     if (st->codec->extradata) {
-        strcpy(st->codec->extradata + 4, "jp2h");
-        get_buffer(pb, st->codec->extradata + 8, atom.size);
+        strcpy((char *)st->codec->extradata + 4, "jp2h");
+        get_buffer(pb, (uint8_t *)st->codec->extradata + 8, atom.size);
     } else
         url_fskip(pb, atom.size);
     return 0;