OSDN Git Service

remove useless memset()
authorMåns Rullgård <mans@mansr.com>
Wed, 27 Sep 2006 19:39:41 +0000 (19:39 +0000)
committerMåns Rullgård <mans@mansr.com>
Wed, 27 Sep 2006 19:39:41 +0000 (19:39 +0000)
Originally committed as revision 6353 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/ogg2.c

index 254415b..7f2b358 100644 (file)
@@ -307,7 +307,6 @@ ogg_read_page (AVFormatContext * s, int *str)
 
     if (os->bufsize - os->bufpos < size){
         uint8_t *nb = av_malloc (os->bufsize *= 2);
-        memset (nb, 0, os->bufsize);
         memcpy (nb, os->buf, os->bufpos);
         av_free (os->buf);
         os->buf = nb;