diff options
author | Clément Bœsch <ubitux@gmail.com> | 2012-09-14 23:54:19 +0200 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2012-09-16 18:28:14 +0200 |
commit | e18ea76523e74383269b02430c5174d500bd2601 (patch) | |
tree | b517bc82c198550df2fe882c53eec41a586f27cd /libavformat | |
parent | 3a8955334705fe60f3c5592ffb515ab0cacf277f (diff) | |
download | ffmpeg-e18ea76523e74383269b02430c5174d500bd2601.tar.gz |
lavf/oggdec: more explicit zeroing of the new ogg stream.
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/oggdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/oggdec.c b/libavformat/oggdec.c index 84d6d40916..682a9420cd 100644 --- a/libavformat/oggdec.c +++ b/libavformat/oggdec.c @@ -174,8 +174,8 @@ static int ogg_new_stream(AVFormatContext *s, uint32_t serial, int new_avstream) !(os = av_realloc(ogg->streams, size))) return AVERROR(ENOMEM); ogg->streams = os; - memset (ogg->streams + idx, 0, sizeof (*ogg->streams)); os = ogg->streams + idx; + memset(os, 0, sizeof(*os)); os->serial = serial; os->bufsize = DECODER_BUFFER_SIZE; os->buf = av_malloc(os->bufsize + FF_INPUT_BUFFER_PADDING_SIZE); |