Commit 845414bb authored by Schenk, Michael's avatar Schenk, Michael Committed by Michael Niedermayer

avformat/oggdec: reset nstreams in close

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent b0a85213
......@@ -647,6 +647,9 @@ static int ogg_read_close(AVFormatContext *s)
av_freep(&ogg->streams[i].private);
av_freep(&ogg->streams[i].new_metadata);
}
ogg->nstreams = 0;
av_freep(&ogg->streams);
return 0;
}
......
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