X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavfilter%2Fvf_nnedi.c;h=33ff503d92248a391332f18f1af9fe1b549ab386;hb=c5cdec9731b864d4e4bda59a7ad9246967ef99da;hp=b14aa64c0462afda46050d1d2fe5941f2056c975;hpb=27e30c73d722ec13e59753dea91be00859c72bf2;p=ffmpeg diff --git a/libavfilter/vf_nnedi.c b/libavfilter/vf_nnedi.c index b14aa64c046..33ff503d922 100644 --- a/libavfilter/vf_nnedi.c +++ b/libavfilter/vf_nnedi.c @@ -809,8 +809,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *src) ret = get_frame(ctx, 1); if (ret < 0) { av_frame_free(&s->dst); - av_frame_free(&s->src); av_frame_free(&s->second); + s->src = NULL; return ret; } dst = s->dst; @@ -922,7 +922,7 @@ static av_cold int init(AVFilterContext *ctx) int dims1offset = 0; int ret = 0, i, j, k; - weights_file = fopen(s->weights_file, "rb"); + weights_file = av_fopen_utf8(s->weights_file, "rb"); if (!weights_file) { av_log(ctx, AV_LOG_ERROR, "No weights file provided, aborting!\n"); return AVERROR(EINVAL);