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
lavf: don't try to free private options if priv_data is NULL.
This might happen if there was an error before priv_data was allocated and result in segfault.
tags/n0.8
Anton Khirnov
14 years ago
parent
9bcbb250e2
commit
dbaba52ed2
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
libavformat/utils.c
+ 1
- 1
libavformat/utils.c
View File
@@ -2551,7 +2551,7 @@ void avformat_free_context(AVFormatContext *s)
AVStream *st;
av_opt_free(s);
if (s->iformat && s->iformat->priv_class)
if (s->iformat && s->iformat->priv_class
&& s->priv_data
)
av_opt_free(s->priv_data);
for(i=0;i<s->nb_streams;i++) {
Write
Preview
Loading…
Cancel
Save