diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2006-09-29 10:28:11 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2006-09-29 10:28:11 +0000 |
commit | 626a8fe724a7e68e140d4226d27fad1c2f62c60d (patch) | |
tree | cb10ba1f0e3bdd47570bc9ce54cd1ff83b50972a /libavformat/mov.c | |
parent | f28748e6718193e271aa8ff65b7ac92daca9f538 (diff) | |
download | ffmpeg-626a8fe724a7e68e140d4226d27fad1c2f62c60d.tar.gz |
remove gcc warnings about void * used in arithmetic
Originally committed as revision 6376 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r-- | libavformat/mov.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index 00ba5ebc45..158af6c758 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -649,7 +649,7 @@ static int mov_read_smi(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom) 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 @@ static int mov_read_alac(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom) 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 @@ static int mov_read_jp2h(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom) /* 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; |