diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-03-12 19:45:56 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-03-16 05:36:14 +0100 |
commit | e4a7b2177d14678ae240edcabaacfe2b14619b7b (patch) | |
tree | 4a1f0aa408f4681ab3caa8bc63160cee375183f1 /libavfilter/vf_showinfo.c | |
parent | 4d67ff8e8e3f8733ca2844143ebb2ac0ab34a9cd (diff) | |
download | ffmpeg-e4a7b2177d14678ae240edcabaacfe2b14619b7b.tar.gz |
vf_showinfo: remove its useless init function
Filter private data is memset to 0 so there is no point in explicitly
initing anything to 0.
Diffstat (limited to 'libavfilter/vf_showinfo.c')
-rw-r--r-- | libavfilter/vf_showinfo.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/libavfilter/vf_showinfo.c b/libavfilter/vf_showinfo.c index 7970810c5d..04b436d4b0 100644 --- a/libavfilter/vf_showinfo.c +++ b/libavfilter/vf_showinfo.c @@ -34,13 +34,6 @@ typedef struct { unsigned int frame; } ShowInfoContext; -static av_cold int init(AVFilterContext *ctx, const char *args) -{ - ShowInfoContext *showinfo = ctx->priv; - showinfo->frame = 0; - return 0; -} - static int filter_frame(AVFilterLink *inlink, AVFrame *frame) { AVFilterContext *ctx = inlink->dst; @@ -103,7 +96,6 @@ AVFilter avfilter_vf_showinfo = { .description = NULL_IF_CONFIG_SMALL("Show textual information for each video frame."), .priv_size = sizeof(ShowInfoContext), - .init = init, .inputs = avfilter_vf_showinfo_inputs, |