projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
25588d3
)
avfilter: don't av_malloc(0).
author
Ronald S. Bultje
<rsbultje@gmail.com>
Wed, 27 Apr 2011 15:29:09 +0000
(08:29 -0700)
committer
Ronald S. Bultje
<rsbultje@gmail.com>
Wed, 4 May 2011 02:29:13 +0000
(22:29 -0400)
libavfilter/avfilter.c
patch
|
blob
|
history
diff --git
a/libavfilter/avfilter.c
b/libavfilter/avfilter.c
index
135b9ff
..
c71c046
100644
(file)
--- a/
libavfilter/avfilter.c
+++ b/
libavfilter/avfilter.c
@@
-587,7
+587,8
@@
int avfilter_open(AVFilterContext **filter_ctx, AVFilter *filter, const char *in
ret->av_class = &avfilter_class;
ret->filter = filter;
ret->name = inst_name ? av_strdup(inst_name) : NULL;
- ret->priv = av_mallocz(filter->priv_size);
+ if (filter->priv_size)
+ ret->priv = av_mallocz(filter->priv_size);
ret->input_count = pad_count(filter->inputs);
if (ret->input_count) {