mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-04-11 03:32:39 +00:00
lavf/oggdec: more explicit zeroing of the new ogg stream.
This commit is contained in:
parent
3a89553347
commit
e18ea76523
@ -174,8 +174,8 @@ static int ogg_new_stream(AVFormatContext *s, uint32_t serial, int new_avstream)
|
|||||||
!(os = av_realloc(ogg->streams, size)))
|
!(os = av_realloc(ogg->streams, size)))
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
ogg->streams = os;
|
ogg->streams = os;
|
||||||
memset (ogg->streams + idx, 0, sizeof (*ogg->streams));
|
|
||||||
os = ogg->streams + idx;
|
os = ogg->streams + idx;
|
||||||
|
memset(os, 0, sizeof(*os));
|
||||||
os->serial = serial;
|
os->serial = serial;
|
||||||
os->bufsize = DECODER_BUFFER_SIZE;
|
os->bufsize = DECODER_BUFFER_SIZE;
|
||||||
os->buf = av_malloc(os->bufsize + FF_INPUT_BUFFER_PADDING_SIZE);
|
os->buf = av_malloc(os->bufsize + FF_INPUT_BUFFER_PADDING_SIZE);
|
||||||
|
Loading…
Reference in New Issue
Block a user