[Ffmpeg-cvslog] r7685 - trunk/libavformat/mov.c

bcoudurier subversion
Wed Jan 24 13:49:24 CET 2007


Author: bcoudurier
Date: Wed Jan 24 13:49:24 2007
New Revision: 7685

Modified:
   trunk/libavformat/mov.c

Log:
replace strcpy by memcpy

Modified: trunk/libavformat/mov.c
==============================================================================
--- trunk/libavformat/mov.c	(original)
+++ trunk/libavformat/mov.c	Wed Jan 24 13:49:24 2007
@@ -618,7 +618,7 @@
     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 @@
     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 @@
 
     /* 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);




More information about the ffmpeg-cvslog mailing list