diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2006-10-04 13:18:51 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2006-10-04 13:18:51 +0000 |
commit | b95d44b6f43bc20a75998e35826130c985c8efb8 (patch) | |
tree | 8af070fcb822479e33b6488edda8f9f296c68af1 | |
parent | 58f2a4b07ffde8b236457229657bbd6733849d87 (diff) | |
download | ffmpeg-b95d44b6f43bc20a75998e35826130c985c8efb8.tar.gz |
remove useless casts
Originally committed as revision 6552 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/mov.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index c5e2bc0e5d..9ddc57d5ad 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -496,7 +496,7 @@ static int mov_read_esds(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom) get_buffer(pb, st->codec->extradata, len); st->codec->extradata_size = len; /* from mplayer */ - if ((*(uint8_t *)st->codec->extradata >> 3) == 29) { + if ((*st->codec->extradata >> 3) == 29) { st->codec->codec_id = CODEC_ID_MP3ON4; } } @@ -649,8 +649,8 @@ 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, (uint8_t *)st->codec->extradata + 0x5a, atom.size); - dprintf("Reading SMI %"PRId64" %s\n", atom.size, (char*)st->codec->extradata + 0x5a); + get_buffer(pb, st->codec->extradata + 0x5a, atom.size); + dprintf("Reading SMI %"PRId64" %s\n", atom.size, st->codec->extradata + 0x5a); } else url_fskip(pb, atom.size); @@ -689,9 +689,9 @@ static int mov_read_alac(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom) st->codec->extradata = av_mallocz(st->codec->extradata_size + FF_INPUT_BUFFER_PADDING_SIZE); if (st->codec->extradata) { - 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); + strcpy(st->codec->extradata + 4, "alac"); // fake + get_buffer(pb, st->codec->extradata + 8, 36 - 8); + dprintf("Reading alac %d %s\n", st->codec->extradata_size, st->codec->extradata); } else url_fskip(pb, atom.size); return 0; @@ -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((char *)st->codec->extradata + 4, "jp2h"); - get_buffer(pb, (uint8_t *)st->codec->extradata + 8, atom.size); + strcpy(st->codec->extradata + 4, "jp2h"); + get_buffer(pb, st->codec->extradata + 8, atom.size); } else url_fskip(pb, atom.size); return 0; |