X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavfilter%2Fvf_dedot.c;h=b79d4a51c465f7aecb4c2a54803af2d9f87ea7ca;hb=4e8d22478bc854949a9adbda97348f2997e1dc8d;hp=ae5ef8f16941904f3f641b95b38f5a7aebd95c19;hpb=8f63c4e72a8c2ccf71b566e8f41fb66bee28a52d;p=ffmpeg diff --git a/libavfilter/vf_dedot.c b/libavfilter/vf_dedot.c index ae5ef8f1694..b79d4a51c46 100644 --- a/libavfilter/vf_dedot.c +++ b/libavfilter/vf_dedot.c @@ -71,6 +71,7 @@ static int query_formats(AVFilterContext *ctx) AV_PIX_FMT_YUV420P16, AV_PIX_FMT_YUV422P16, AV_PIX_FMT_YUV444P16, AV_PIX_FMT_YUVA420P9, AV_PIX_FMT_YUVA422P9, AV_PIX_FMT_YUVA444P9, AV_PIX_FMT_YUVA420P10, AV_PIX_FMT_YUVA422P10, AV_PIX_FMT_YUVA444P10, + AV_PIX_FMT_YUVA422P12, AV_PIX_FMT_YUVA444P12, AV_PIX_FMT_YUVA420P16, AV_PIX_FMT_YUVA422P16, AV_PIX_FMT_YUVA444P16, AV_PIX_FMT_NONE }; @@ -312,7 +313,8 @@ static int activate(AVFilterContext *ctx) FFMIN(s->planeheight[2], ff_filter_get_nb_threads(ctx))); } - } + } else + av_frame_free(&out); } else if (!out) { ret = AVERROR(ENOMEM); } @@ -399,7 +401,7 @@ static const AVFilterPad outputs[] = { AVFILTER_DEFINE_CLASS(dedot); -AVFilter ff_vf_dedot = { +const AVFilter ff_vf_dedot = { .name = "dedot", .description = NULL_IF_CONFIG_SMALL("Reduce cross-luminance and cross-color."), .priv_size = sizeof(DedotContext),