提交 781195fa 编写于 作者: P Paul B Mahol

avfilter/af_sofalizer: check if filename was set.

Signed-off-by: NPaul B Mahol <onemda@gmail.com>
上级 fb2f1645
......@@ -937,6 +937,11 @@ static av_cold int init(AVFilterContext *ctx)
SOFAlizerContext *s = ctx->priv;
int ret;
if (!s->filename) {
av_log(ctx, AV_LOG_ERROR, "Valid SOFA filename must be set.\n");
return AVERROR(EINVAL);
}
/* load SOFA file, */
/* initialize file IDs to 0 before attempting to load SOFA files,
* this assures that in case of error, only the memory of already
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册