[FFmpeg-cvslog] avfilter/ebur128: do not allow null ebur128 context in ff_ebur128_relative_threshold
Marton Balint
git at videolan.org
Sun Feb 5 01:00:51 EET 2017
ffmpeg | branch: master | Marton Balint <cus at passwd.hu> | Wed Jan 25 01:06:42 2017 +0100| [a91cedf79a92377300006b66b8707ae52021eea9] | committer: Marton Balint
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 at passwd.hu>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a91cedf79a92377300006b66b8707ae52021eea9
---
libavfilter/ebur128.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/ebur128.c b/libavfilter/ebur128.c
index a46692e..012df54 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,
More information about the ffmpeg-cvslog
mailing list