Commit 0f229f9b authored by Anshul Maheshwari's avatar Anshul Maheshwari Committed by Michael Niedermayer

avformat/utils: Close codec context since it is allocated by...

avformat/utils: Close codec context since it is allocated by avformat_new_stream in refrence to ticket 2716
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent db0384c9
......@@ -3178,6 +3178,9 @@ void ff_free_stream(AVFormatContext *s, AVStream *st){
av_assert0(s->nb_streams>0);
av_assert0(s->streams[ s->nb_streams-1 ] == st);
if (st->codec) {
avcodec_close(st->codec);
}
if (st->parser) {
av_parser_close(st->parser);
}
......
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