You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
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.
This commit is contained in:
@@ -34,13 +34,6 @@ typedef struct {
|
|||||||
unsigned int frame;
|
unsigned int frame;
|
||||||
} ShowInfoContext;
|
} 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)
|
static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
|
||||||
{
|
{
|
||||||
AVFilterContext *ctx = inlink->dst;
|
AVFilterContext *ctx = inlink->dst;
|
||||||
@@ -103,7 +96,6 @@ AVFilter avfilter_vf_showinfo = {
|
|||||||
.description = NULL_IF_CONFIG_SMALL("Show textual information for each video frame."),
|
.description = NULL_IF_CONFIG_SMALL("Show textual information for each video frame."),
|
||||||
|
|
||||||
.priv_size = sizeof(ShowInfoContext),
|
.priv_size = sizeof(ShowInfoContext),
|
||||||
.init = init,
|
|
||||||
|
|
||||||
.inputs = avfilter_vf_showinfo_inputs,
|
.inputs = avfilter_vf_showinfo_inputs,
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user