mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-23 11:39:49 +00:00
avfilter/af_astats: fix msvc compile error
MSVC requires an explicit cast from void * to void when applying the ternary conditional operator to switch between methods that return void.
This commit is contained in:
parent
45048ece81
commit
90b21ae5b5
@ -496,7 +496,7 @@ static void set_metadata(AudioStatsContext *s, AVDictionary **metadata)
|
||||
|
||||
#define UPDATE_STATS(planar, type, sample, normalizer_suffix, int_sample) \
|
||||
if ((s->measure_overall | s->measure_perchannel) & ~MEASURE_MINMAXPEAK) { \
|
||||
UPDATE_STATS_##planar(type, update_stat(s, p, sample, sample normalizer_suffix, int_sample), s->is_float ? update_float_stat(s, p, sample) : s->is_double ? update_double_stat(s, p, sample) : NULL, ); \
|
||||
UPDATE_STATS_##planar(type, update_stat(s, p, sample, sample normalizer_suffix, int_sample), s->is_float ? update_float_stat(s, p, sample) : s->is_double ? update_double_stat(s, p, sample) : (void)NULL, ); \
|
||||
} else { \
|
||||
UPDATE_STATS_##planar(type, update_minmax(s, p, sample), , p->nmin = p->min normalizer_suffix; p->nmax = p->max normalizer_suffix;); \
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user