diff options
author | Marton Balint <cus@passwd.hu> | 2017-01-25 01:06:42 +0100 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2017-02-04 23:54:17 +0100 |
commit | a91cedf79a92377300006b66b8707ae52021eea9 (patch) | |
tree | 0671d60e99495651110103971963b92bfd4190b8 /libavfilter/ebur128.c | |
parent | 1687fa2131310875e9366b67601ff28e55a43d1c (diff) | |
download | ffmpeg-a91cedf79a92377300006b66b8707ae52021eea9.tar.gz |
avfilter/ebur128: do not allow null ebur128 context in ff_ebur128_relative_threshold
The user should supply a proper context.
Fixes Coverity CID 1396246.
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavfilter/ebur128.c')
-rw-r--r-- | libavfilter/ebur128.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/ebur128.c b/libavfilter/ebur128.c index a46692ec06..012df54278 100644 --- a/libavfilter/ebur128.c +++ b/libavfilter/ebur128.c @@ -599,7 +599,7 @@ int ff_ebur128_relative_threshold(FFEBUR128State * st, double *out) double relative_threshold; size_t above_thresh_counter; - if (st && (st->mode & FF_EBUR128_MODE_I) != FF_EBUR128_MODE_I) + if ((st->mode & FF_EBUR128_MODE_I) != FF_EBUR128_MODE_I) return AVERROR(EINVAL); ebur128_calc_relative_threshold(st, &above_thresh_counter, |