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:
ed63f52
)
lavf: add a forgotten NULL check in convert_format_parameters().
author
Anton Khirnov
<anton@khirnov.net>
Sat, 18 Jun 2011 15:26:40 +0000
(17:26 +0200)
committer
Anton Khirnov
<anton@khirnov.net>
Sat, 18 Jun 2011 15:42:44 +0000
(17:42 +0200)
libavformat/utils.c
patch
|
blob
|
history
diff --git
a/libavformat/utils.c
b/libavformat/utils.c
index
e3485e6
..
81bc9b7
100644
(file)
--- a/
libavformat/utils.c
+++ b/
libavformat/utils.c
@@
-395,6
+395,9
@@
static AVDictionary *convert_format_parameters(AVFormatParameters *ap)
char buf[1024];
AVDictionary *opts = NULL;
+ if (!ap)
+ return NULL;
+
if (ap->time_base.num) {
snprintf(buf, sizeof(buf), "%d/%d", ap->time_base.den, ap->time_base.num);
av_dict_set(&opts, "framerate", buf, 0);