mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-20 06:20:40 +00:00
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>
This commit is contained in:
parent
1687fa2131
commit
a91cedf79a
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user