vf_divtc, vf_phase: Fix handling of subsampled formats

These filters incorrectly calculated the amount of bytes per line
in each plane for chroma subsampled formats, causing undefined
behavior.