fix cropping issue on writing filtered video