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:
09c5f99
)
vf_drawtext: Fix reinit to allow color changes.
author
Michael Niedermayer
<michaelni@gmx.at>
Sun, 4 Sep 2011 18:47:17 +0000
(20:47 +0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sun, 4 Sep 2011 18:58:13 +0000
(20:58 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/vf_drawtext.c
patch
|
blob
|
history
diff --git
a/libavfilter/vf_drawtext.c
b/libavfilter/vf_drawtext.c
index
d95e712
..
a2a7724
100644
(file)
--- a/
libavfilter/vf_drawtext.c
+++ b/
libavfilter/vf_drawtext.c
@@
-408,8
+408,11
@@
static int config_input(AVFilterLink *inlink)
static int command(AVFilterContext *ctx, const char *cmd, const char *arg, char *res, int res_len, int flags)
{
if(!strcmp(cmd, "reinit")){
+ int ret;
uninit(ctx);
- return init(ctx, arg, NULL);
+ if((ret=init(ctx, arg, NULL)) < 0)
+ return ret;
+ return config_input(ctx->inputs[0]);
}
return AVERROR(ENOSYS);