avfilter/vf_histogram: fix segfault in parade waveform mode for subsampled formats