Commit 118b99c0 authored by mru's avatar mru

remove useless memset()


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6353 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent ee9bb4cf
...@@ -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