You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avfilter/af_sofalizer: check if filename was set.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
@@ -937,6 +937,11 @@ static av_cold int init(AVFilterContext *ctx)
|
|||||||
SOFAlizerContext *s = ctx->priv;
|
SOFAlizerContext *s = ctx->priv;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
if (!s->filename) {
|
||||||
|
av_log(ctx, AV_LOG_ERROR, "Valid SOFA filename must be set.\n");
|
||||||
|
return AVERROR(EINVAL);
|
||||||
|
}
|
||||||
|
|
||||||
/* load SOFA file, */
|
/* load SOFA file, */
|
||||||
/* initialize file IDs to 0 before attempting to load SOFA files,
|
/* initialize file IDs to 0 before attempting to load SOFA files,
|
||||||
* this assures that in case of error, only the memory of already
|
* this assures that in case of error, only the memory of already
|
||||||
|
Reference in New Issue
Block a user