Commit a91cedf7 authored by Marton Balint's avatar 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: 's avatarMarton Balint <cus@passwd.hu>
parent 1687fa21
...@@ -599,7 +599,7 @@ int ff_ebur128_relative_threshold(FFEBUR128State * st, double *out) ...@@ -599,7 +599,7 @@ int ff_ebur128_relative_threshold(FFEBUR128State * st, double *out)
double relative_threshold; double relative_threshold;
size_t above_thresh_counter; 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); return AVERROR(EINVAL);
ebur128_calc_relative_threshold(st, &above_thresh_counter, ebur128_calc_relative_threshold(st, &above_thresh_counter,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment