Commit 0c630922 authored by Måns Rullgård's avatar Måns Rullgård

remove useless memset()

Originally committed as revision 6353 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 44cdb423
...@@ -307,7 +307,6 @@ ogg_read_page (AVFormatContext * s, int *str) ...@@ -307,7 +307,6 @@ ogg_read_page (AVFormatContext * s, int *str)
if (os->bufsize - os->bufpos < size){ if (os->bufsize - os->bufpos < size){
uint8_t *nb = av_malloc (os->bufsize *= 2); uint8_t *nb = av_malloc (os->bufsize *= 2);
memset (nb, 0, os->bufsize);
memcpy (nb, os->buf, os->bufpos); memcpy (nb, os->buf, os->bufpos);
av_free (os->buf); av_free (os->buf);
os->buf = nb; os->buf = nb;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment