This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
avformat/utils: Close codec context since it is allocated by avformat_new_stream in refrence to ticket 2716
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.1
Anshul Maheshwari
Michael Niedermayer
12 years ago
parent
db0384c9c9
commit
0f229f9b91
1 changed files
with
3 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-0
libavformat/utils.c
+ 3
- 0
libavformat/utils.c
View File
@@ -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);
}
Write
Preview
Loading…
Cancel
Save