diff options
author | Paul B Mahol <onemda@gmail.com> | 2016-03-04 22:14:43 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2016-03-04 22:14:43 +0100 |
commit | 781195fa6229fbeea81e134eb84d7ba6effdb9b9 (patch) | |
tree | 45ebb046aed0160bc1a0da72ccd04d7575af8699 | |
parent | fb2f16459894f1f41fdf8c9e7383704d6d3591b0 (diff) | |
download | ffmpeg-781195fa6229fbeea81e134eb84d7ba6effdb9b9.tar.gz |
avfilter/af_sofalizer: check if filename was set.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r-- | libavfilter/af_sofalizer.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavfilter/af_sofalizer.c b/libavfilter/af_sofalizer.c index 4c7ea68df4..2d18b7fbb1 100644 --- a/libavfilter/af_sofalizer.c +++ b/libavfilter/af_sofalizer.c @@ -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 |