OSDN Git Service
(root)
/
coroid
/
ffmpeg_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bed31c7
)
lavf: prevent crash in av_open_input_file() if ap == NULL.
author
Ronald S. Bultje
<rsbultje@gmail.com>
Sat, 18 Jun 2011 19:33:49 +0000
(15:33 -0400)
committer
Ronald S. Bultje
<rsbultje@gmail.com>
Sat, 18 Jun 2011 21:51:10 +0000
(17:51 -0400)
Needed for proper behaviour in our old API compatibility code.
libavformat/utils.c
patch
|
blob
|
history
diff --git
a/libavformat/utils.c
b/libavformat/utils.c
index
81bc9b7
..
7370c60
100644
(file)
--- a/
libavformat/utils.c
+++ b/
libavformat/utils.c
@@
-549,7
+549,7
@@
int av_open_input_file(AVFormatContext **ic_ptr, const char *filename,
int err;
AVDictionary *opts = convert_format_parameters(ap);
- if (!ap->prealloced_context)
+ if (!ap
|| !ap
->prealloced_context)
*ic_ptr = NULL;
err = avformat_open_input(ic_ptr, filename, fmt, &opts);