OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
830f7f1
)
avformat_free_context: allow NULL as argument
author
Michael Niedermayer
<michaelni@gmx.at>
Sat, 20 Oct 2012 17:48:26 +0000
(19:48 +0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sat, 20 Oct 2012 18:13:18 +0000
(20:13 +0200)
Fixes CID703682
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/utils.c
patch
|
blob
|
history
diff --git
a/libavformat/utils.c
b/libavformat/utils.c
index
be1be00
..
f27104e
100644
(file)
--- a/
libavformat/utils.c
+++ b/
libavformat/utils.c
@@
-3018,6
+3018,9
@@
void avformat_free_context(AVFormatContext *s)
{
int i;
+ if (!s)
+ return;
+
av_opt_free(s);
if (s->iformat && s->iformat->priv_class && s->priv_data)
av_opt_free(s->priv_data);