Yup, that fixes it.  I just added `inputFormat.m_frames = m_sinkFormat.m_frames` directly before the assignment `outputFormat = inputFormat`.