diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2007-01-24 12:49:24 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2007-01-24 12:49:24 +0000 |
commit | 560588b7171097cef08645562017b40c325356a4 (patch) | |
tree | d8e83c5ac0f18c390942e407d88d3796cccb63a8 /libavformat/mov.c | |
parent | 0c74098b1c4cc566ee0af19374b03d1e425dd1f0 (diff) | |
download | ffmpeg-560588b7171097cef08645562017b40c325356a4.tar.gz |
replace strcpy by memcpy
Originally committed as revision 7685 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r-- | libavformat/mov.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index ca694a9b87..4e542cd55c 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -618,7 +618,7 @@ static int mov_read_smi(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(st->codec->extradata, "SVQ3"); // fake + memcpy(st->codec->extradata, "SVQ3", 4); // fake get_buffer(pb, st->codec->extradata + 0x5a, atom.size); dprintf("Reading SMI %"PRId64" %s\n", atom.size, st->codec->extradata + 0x5a); } else @@ -659,7 +659,7 @@ 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(st->codec->extradata + 4, "alac"); // fake + memcpy(st->codec->extradata + 4, "alac", 4); // fake get_buffer(pb, st->codec->extradata + 8, 36 - 8); dprintf("Reading alac %d %s\n", st->codec->extradata_size, st->codec->extradata); } else @@ -705,7 +705,7 @@ 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"); + memcpy(st->codec->extradata + 4, "jp2h", 4); get_buffer(pb, st->codec->extradata + 8, atom.size); } else url_fskip(pb, atom.size); |